From 9cf306d55e36bf783e46b080f15112f0cc509549 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 28 Jul 2000 19:05:20 +0000 Subject: [PATCH] Fix for a potential uninitialized variable, thx to Ken Chalmers -Erik --- coreutils/id.c | 1 + id.c | 1 + 2 files changed, 2 insertions(+) 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) { -- 2.25.1