From: Roy Marples Date: Sat, 23 May 2015 08:36:34 +0000 (+0000) Subject: Ensure that new_block is zero before use, fixes [1972d664c2]. X-Git-Tag: v6.9.1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=417c31a91fab2a8e718cb8eb14bd24688e2f3f4e;p=thirdparty%2Fdhcpcd.git Ensure that new_block is zero before use, fixes [1972d664c2]. --- diff --git a/if-options.c b/if-options.c index e32a0c84..859a143a 100644 --- a/if-options.c +++ b/if-options.c @@ -2096,7 +2096,7 @@ read_config(struct dhcpcd_ctx *ctx, char *line, *buf, *option, *p; size_t buflen; ssize_t vlen; - int skip = 0, have_profile = 0, new_block, had_block; + int skip, have_profile, new_block, had_block; #ifndef EMBEDDED_CONFIG const char * const *e; size_t ol; @@ -2270,6 +2270,7 @@ read_config(struct dhcpcd_ctx *ctx, ifo->mtime = sb.st_mtime; ldop = edop = NULL; + skip = have_profile = new_block = 0; while ((line = get_line(&buf, &buflen, fp))) { option = strsep(&line, " \t"); if (line)