summaryrefslogtreecommitdiff
path: root/src/genbools.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/genbools.c')
-rw-r--r--src/genbools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genbools.c b/src/genbools.c
index 612ff9a..6a06ec9 100644
--- a/src/genbools.c
+++ b/src/genbools.c
@@ -33,7 +33,7 @@ static char *strtrim(char *dest, char *source, int size)
static int process_boolean(char *buffer, char *name, int namesize, int *val)
{
char name1[BUFSIZ];
- char *ptr;
+ char *ptr = NULL;
char *tok = strtok_r(buffer, "=", &ptr);
if (tok) {
strncpy(name1, tok, BUFSIZ - 1);