summaryrefslogtreecommitdiffstats
path: root/discover/boot.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/boot.c
parenta240e296ac2ecf8934f71cb23946fc77101cdfd6 (diff)
downloadtalos-petitboot-388e5c51b182e904c088d14c387f61162b07aee6.tar.gz
talos-petitboot-388e5c51b182e904c088d14c387f61162b07aee6.zip
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/boot.c')
-rw-r--r--discover/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/boot.c b/discover/boot.c
index 6e7fda6..7778b3f 100644
--- a/discover/boot.c
+++ b/discover/boot.c
@@ -177,7 +177,7 @@ static void boot_hook_update(struct boot_task *task, const char *hookname,
char *buf)
{
char *line, *name, *val, *sep;
- char *saveptr;
+ char *saveptr = NULL;
for (;; buf = NULL) {
OpenPOWER on IntegriCloud