diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-04-10 15:57:34 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-04-14 15:40:55 +1000 |
commit | 388e5c51b182e904c088d14c387f61162b07aee6 (patch) | |
tree | 1b538bcff9aeda051b8e5f30b7929f238ef2cf2f /discover/boot.c | |
parent | a240e296ac2ecf8934f71cb23946fc77101cdfd6 (diff) | |
download | talos-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.c | 2 |
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) { |