Re: [mISDNuser PATCH] Fix compile warning detected by -Werror
Karsten Keil <[email protected]>
| Newsgroups | gmane.linux.isdn.i4l.user |
|---|---|
| Message-ID | <[email protected]> |
Am 24.08.2012 09:40, schrieb Thomas Jarosch: > text_wireshark.c: In function 'main': > text_wireshark.c:181: error: 'infilename' may be used uninitialized in this function > text_wireshark.c:182: error: 'outfilename' may be used uninitialized in this function > > Signed-off-by: Thomas Jarosch <[email protected]> > --- > tools/text_wireshark.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/text_wireshark.c b/tools/text_wireshark.c > index 7902742..4a0772f 100644 > --- a/tools/text_wireshark.c > +++ b/tools/text_wireshark.c > @@ -178,8 +178,8 @@ main(argc, argv) > int argc; > char *argv[]; > { > - char *infilename; > - char *outfilename; > + char *infilename = NULL; > + char *outfilename = NULL; > char sw; > char line[4096]; > u_char buffer[512]; > Thanks, applied