summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/nl/nl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/nl/nl.c b/usr.bin/nl/nl.c
index f557185003d1..afc3c8608a2b 100644
--- a/usr.bin/nl/nl.c
+++ b/usr.bin/nl/nl.c
@@ -296,14 +296,11 @@ filter()
int section; /* logical page section */
unsigned int adjblank; /* adjacent blank lines */
int consumed; /* intbuffer measurement */
- int donumber, idx;
+ int donumber = 0, idx;
adjblank = 0;
line = startnum;
section = BODY;
-#ifdef __GNUC__
- (void)&donumber; /* avoid bogus `uninitialized' warning */
-#endif
while (fgets(buffer, (int)buffersize, stdin) != NULL) {
for (idx = FOOTER; idx <= NP_LAST; idx++) {