]> granicus.if.org Git - sudo/commitdiff
Quiet a gcc "used uninitialized in this function" false positive.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 15 Aug 2013 16:49:06 +0000 (10:49 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 15 Aug 2013 16:49:06 +0000 (10:49 -0600)
compat/pw_dup.c

index 6f9312ef7910b1c84d6dcdd2cddd6d4f0ed4b7dd..357121ab81bdec77ce18b898f1913ee597677432 100644 (file)
@@ -67,7 +67,7 @@ pw_dup(const struct passwd *pw)
 {
        size_t nsize = 0, psize = 0, gsize = 0, dsize = 0, ssize = 0, total;
 #ifdef HAVE_LOGIN_CAP_H
-       size_t csize;
+       size_t csize = 0;
 #endif
        struct passwd *newpw;
        char *cp;