diff options
Diffstat (limited to 'generic/tkImgPPM.c')
-rw-r--r-- | generic/tkImgPPM.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/generic/tkImgPPM.c b/generic/tkImgPPM.c index fe7818f..49aba5a 100644 --- a/generic/tkImgPPM.c +++ b/generic/tkImgPPM.c @@ -13,7 +13,7 @@ * Department of Computer Science, * Australian National University. * - * RCS: @(#) $Id: tkImgPPM.c,v 1.6 1999/10/29 03:57:56 hobbs Exp $ + * RCS: @(#) $Id: tkImgPPM.c,v 1.7 1999/12/21 23:55:11 hobbs Exp $ */ #define USE_OLD_IMAGE @@ -355,7 +355,7 @@ ReadPPMFileHeader(chan, widthPtr, heightPtr, maxIntensityPtr) { #define BUFFER_SIZE 1000 char buffer[BUFFER_SIZE]; - int i, numFields, firstInLine; + int i, numFields; int type = 0; char c; @@ -367,7 +367,6 @@ ReadPPMFileHeader(chan, widthPtr, heightPtr, maxIntensityPtr) if (Tcl_Read(chan, &c, 1) != 1) { return 0; } - firstInLine = 1; i = 0; for (numFields = 0; numFields < 4; numFields++) { /* @@ -376,7 +375,6 @@ ReadPPMFileHeader(chan, widthPtr, heightPtr, maxIntensityPtr) while (1) { while (isspace(UCHAR(c))) { - firstInLine = (c == '\n'); if (Tcl_Read(chan, &c, 1) != 1) { return 0; } @@ -389,7 +387,6 @@ ReadPPMFileHeader(chan, widthPtr, heightPtr, maxIntensityPtr) return 0; } } while (c != '\n'); - firstInLine = 1; } /* @@ -409,7 +406,6 @@ ReadPPMFileHeader(chan, widthPtr, heightPtr, maxIntensityPtr) buffer[i] = ' '; i++; } - firstInLine = 0; } done: buffer[i] = 0; |