From 657f43a23250f33a0f2d53e1515bbe24908b7aa0 Mon Sep 17 00:00:00 2001 From: Luiz Fernando Capitulino Date: Thu, 5 Feb 2009 12:30:17 +0000 Subject: - Fix 'ret may be used uninitialized' warning by initializing it with the standard error code --- common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common.c') diff --git a/common.c b/common.c index 08dd449..bcc614d 100644 --- a/common.c +++ b/common.c @@ -81,7 +81,7 @@ fh fh_open(const char *name) { } char* fh_gets(char *line, int size, fh *f) { - char *ret; + char *ret = NULL; switch (f->gztype) { case ZLIB: ret = gzgets(f->u.zlib_fh, line, size); @@ -94,7 +94,7 @@ char* fh_gets(char *line, int size, fh *f) { } int fh_close(fh *f) { - int ret; + int ret = EOF; switch (f->gztype) { case ZLIB: ret = gzclose(f->u.zlib_fh); -- cgit v1.2.1