Re: [PATCH] getndelim2.c: avoid a warning from gcc

2008-04-30 Thread Eric Blake
Jim Meyering meyering.net> writes: > getndelim2.c: In function 'getndelim2': > getndelim2.c:103: error: 'c' may be used uninitialized in this function You are correct that this warning is spurious - the use of c in question is guarded by a NULL buffer, and c was guaranteed to be set ear

[PATCH] getndelim2.c: avoid a warning from gcc

2008-04-30 Thread Jim Meyering
Hi Eric, This warning causes coreutils' "make distcheck" to fail, so I propose to fix it like this. cc1: warnings being treated as errors getndelim2.c: In function 'getndelim2': getndelim2.c:103: error: 'c' may be used uninitialized in this function make[6]: *** [getndelim2.o] Err