summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 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) {