summaryrefslogtreecommitdiffstats
path: root/discover/platform-powerpc.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-04-10 15:57:34 +1000
committerJeremy Kerr <jk@ozlabs.org>2015-04-14 15:40:55 +1000
commit388e5c51b182e904c088d14c387f61162b07aee6 (patch)
tree1b538bcff9aeda051b8e5f30b7929f238ef2cf2f /discover/platform-powerpc.c
parenta240e296ac2ecf8934f71cb23946fc77101cdfd6 (diff)
downloadpetitboot-388e5c51b182e904c088d14c387f61162b07aee6.zip
petitboot-388e5c51b182e904c088d14c387f61162b07aee6.tar.gz
discover: Initialise strtok_r saveptr to NULL
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/platform-powerpc.c')
-rw-r--r--discover/platform-powerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index 395f134..a293ce9 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -337,7 +337,7 @@ out_err:
static int parse_one_dns_config(struct config *config,
char *confstr)
{
- char *tok, *saveptr;
+ char *tok, *saveptr = NULL;
for (tok = strtok_r(confstr, ",", &saveptr); tok;
tok = strtok_r(NULL, ",", &saveptr)) {
OpenPOWER on IntegriCloud