From: Dave Hart Date: Sun, 2 Jan 2011 09:50:53 +0000 (+0000) Subject: quiet warning about n potentially used uninit in ntpq's collect_display_vdc() X-Git-Tag: NTP_4_2_7P109~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=138b2499547d6f01e4435e4c19849aa5bb8968cb;p=thirdparty%2Fntp.git quiet warning about n potentially used uninit in ntpq's collect_display_vdc() bk: 4d204a7dk4vsFV54XRBDw6nXlKMyew --- diff --git a/ntpq/ntpq-subs.c b/ntpq/ntpq-subs.c index 00a0a0665..3ef3fbb77 100644 --- a/ntpq/ntpq-subs.c +++ b/ntpq/ntpq-subs.c @@ -3185,6 +3185,7 @@ collect_display_vdc( while (nextvar(&rsize, &rdata, &tag, &val)) { if (NULL == val) continue; + n = 0; for (pvdc = table; pvdc->tag != NULL; pvdc++) { len = strlen(pvdc->tag); if (strncmp(tag, pvdc->tag, len))