]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_kvargs/rte_kvargs.c
kvargs: fix build with gcc 4.5.1
[dpdk.git] / lib / librte_kvargs / rte_kvargs.c
index a7586a31665abf4a8d829d0e803a52762aaf8658..8bc1e461177936964eb487b20c46776ceb194d64 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