Code

Fix an uninitialized value warnings caused by clang not knowing about fail().
authorSebastian Harl <sh@tokkee.org>
Thu, 21 May 2015 21:39:22 +0000 (23:39 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 21 May 2015 21:39:22 +0000 (23:39 +0200)
t/unit/frontend/query_test.c

index 8872e5b6e13a0f2879430e20e65f7c7f1bf27ebf..8047b2668bae56b596d4cc6e2067c40d930408f6 100644 (file)
@@ -648,7 +648,7 @@ START_TEST(test_query)
        const char *data;
        ssize_t tmp;
        size_t len;
-       int check;
+       int check = -1;
 
        conn->cmd = query_data[_i].cmd;
        if (query_data[_i].query_len < 0)