summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2000-07-28 19:05:20 +0000
committerEric Andersen2000-07-28 19:05:20 +0000
commit9cf306d55e36bf783e46b080f15112f0cc509549 (patch)
treeb290715cadffffb32aa290e9866a44c666cd54e8
parent6a4c33c5c0e5d01c1280a0d77439cd9843eee55a (diff)
downloadbusybox-9cf306d55e36bf783e46b080f15112f0cc509549.zip
busybox-9cf306d55e36bf783e46b080f15112f0cc509549.tar.gz
Fix for a potential uninitialized variable, thx to
Ken Chalmers <chalmers@norscan.com> -Erik
-rw-r--r--coreutils/id.c1
-rw-r--r--id.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/id.c b/coreutils/id.c
index ce5db52..a1a1792 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 ce5db52..a1a1792 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) {