kvargs: fix build with gcc 4.5.1
[dpdk.git] / lib / librte_kvargs / rte_kvargs.c
index a7586a3..8bc1e46 100644 (file)
@@ -48,7 +48,9 @@ static int
 rte_kvargs_tokenize(struct rte_kvargs *kvlist, const char *params)
 {
        unsigned i;
-       char *str, *ctx1, *ctx2;
+       char *str;
+       char *ctx1 = NULL;
+       char *ctx2 = NULL;
 
        /* Copy the const char *params to a modifiable string
         * to pass to rte_strsplit