aboutsummaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorThomas Glanzmann <sithglan@stud.uni-erlangen.de>2005-05-08 11:34:40 +0200
committerPetr Baudis <xpasky@machine.sinus.cz>2005-05-08 17:29:33 +0200
commit6ffcee883bfa6d343a3792a583775084d588afd3 (patch)
treee19665d8d42877246ac7e98a7c671d11adbe8b56 /sha1_file.c
parentc899350e9dbe8700ad3c945b9743e9472732684b (diff)
downloadgit-6ffcee883bfa6d343a3792a583775084d588afd3.tar.gz
[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>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index f1c1c70d78..e21f4b30d6 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -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;