From 7ad42add7386e137933034fb9be87ee6129a2cc3 Mon Sep 17 00:00:00 2001 From: Tim Nieradzik Date: Mon, 5 Sep 2016 09:11:01 +0300 Subject: [PATCH] test_string: Fix failing strdup test `rc` may be initialised with -1. --- tests/test_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_string.c b/tests/test_string.c index f7993da..fc1b391 100644 --- a/tests/test_string.c +++ b/tests/test_string.c @@ -58,7 +58,7 @@ static int test_strtok_r(void) static int test_strdup_one(xmpp_ctx_t *ctx, const char *s) { char *s1, *s2; - int rc; + int rc = 0; s1 = strdup(s); s2 = xmpp_strdup(ctx, s);