diff options
-rw-r--r-- | src/cmd/jpg/readppm.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/cmd/jpg/readppm.c b/src/cmd/jpg/readppm.c index d9b54293..569025fd 100644 --- a/src/cmd/jpg/readppm.c +++ b/src/cmd/jpg/readppm.c @@ -16,14 +16,12 @@ Bgetch(Biobuf *b) { int c; - for(;;) { - c = Bgetc(b); - if(c == '#') { - while((c = Bgetc(b)) != Beof && c != '\n') - ; - } - return c; - } + c = Bgetc(b); + if(c == '#') { + while((c = Bgetc(b)) != Beof && c != '\n') + ; + } + return c; } /* |