From: Eric Andersen Date: Fri, 28 Jul 2000 19:05:20 +0000 (-0000) Subject: Fix for a potential uninitialized variable, thx to X-Git-Tag: 0_47~184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9cf306d55e36bf783e46b080f15112f0cc509549;p=oweals%2Fbusybox.git Fix for a potential uninitialized variable, thx to Ken Chalmers -Erik --- diff --git a/coreutils/id.c b/coreutils/id.c index ce5db52f0..a1a17924c 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -37,6 +37,7 @@ extern int id_main(int argc, char **argv) int opt; cp = user = group = NULL; + gid = 0; while ((opt = getopt(argc, argv, "ugr")) > 0) { switch (opt) { diff --git a/id.c b/id.c index ce5db52f0..a1a17924c 100644 --- a/id.c +++ b/id.c @@ -37,6 +37,7 @@ extern int id_main(int argc, char **argv) int opt; cp = user = group = NULL; + gid = 0; while ((opt = getopt(argc, argv, "ugr")) > 0) { switch (opt) {