]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
quiet warning about n potentially used uninit in ntpq's collect_display_vdc()
authorDave Hart <hart@ntp.org>
Sun, 2 Jan 2011 09:50:53 +0000 (09:50 +0000)
committerDave Hart <hart@ntp.org>
Sun, 2 Jan 2011 09:50:53 +0000 (09:50 +0000)
bk: 4d204a7dk4vsFV54XRBDw6nXlKMyew

ntpq/ntpq-subs.c

index 00a0a0665c5febea4ac231d17a2f7a7334bbb878..3ef3fbb77f86bb4525d634d8ee0b8f2c7d96db1b 100644 (file)
@@ -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))