[PATCH] Really *do* nothing in while loop

A deflate loop in sha1_file.c would have /* nothing */ as its
body, but the semicolon was missing, so the next command was run.
Fortunately the loop went through exactly once so it didn't trigger
an actual bug so far.

Signed-Off-by: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
Signed-off-by: Petr Baudis <pasky@ucw.cz>
This commit is contained in:
Thomas Glanzmann 2005-05-08 11:34:40 +02:00 committed by Petr Baudis
parent c899350e9d
commit 6ffcee883b

View File

@ -335,7 +335,7 @@ int write_sha1_file(char *buf, unsigned long len, const char *type, unsigned cha
stream.next_in = hdr;
stream.avail_in = hdrlen;
while (deflate(&stream, 0) == Z_OK)
/* nothing */
/* nothing */;
/* Then the data itself.. */
stream.next_in = buf;