git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kvargs: fix build with gcc 4.5.1
[dpdk.git]
/
lib
/
librte_kvargs
/
rte_kvargs.c
diff --git
a/lib/librte_kvargs/rte_kvargs.c
b/lib/librte_kvargs/rte_kvargs.c
index
a7586a3
..
8bc1e46
100644
(file)
--- a/
lib/librte_kvargs/rte_kvargs.c
+++ b/
lib/librte_kvargs/rte_kvargs.c
@@
-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