Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2007-05-09 18:57:26 +0400
committerKent Mein <mein@cs.umn.edu>2007-05-09 18:57:26 +0400
commitd6d13345623c8f22f8332343915bb5a68f074b76 (patch)
tree2bed9741906f39cf79ffc9235d91813d77f03375 /source
parent0d51eb6ceb031b1e0d40d0c488ce432e0fbf8dc9 (diff)
Another small cleanup of dead code thanks to coverity.
Kent
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/psfont.c5
1 files changed, 1 insertions, 4 deletions
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;