From d6d13345623c8f22f8332343915bb5a68f074b76 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Wed, 9 May 2007 14:57:26 +0000 Subject: Another small cleanup of dead code thanks to coverity. Kent --- source/blender/blenlib/intern/psfont.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source') diff --git a/source/blender/blenlib/intern/psfont.c b/source/blender/blenlib/intern/psfont.c index 2fccf09805b..941bf4204a8 100644 --- a/source/blender/blenlib/intern/psfont.c +++ b/source/blender/blenlib/intern/psfont.c @@ -664,7 +664,6 @@ static short STDtoISO(short c) */ static char * newfgets(char * s, int n, PackedFile * pf){ - int read = 0; int c; char * p; @@ -673,9 +672,7 @@ static char * newfgets(char * s, int n, PackedFile * pf){ c = ((char *) pf->data)[pf->seek]; pf->seek++; if (pf->seek > pf->size){ - if (read == 0) return (0); - *p = 0; - return(s); + return (0); } if (c == 10 || c == 13){ *p = 0; -- cgit v1.2.3