diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-12-07 17:04:11 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-08 03:40:12 -0800 |
commit | fd99b36134a047b8c5ba1230323e7cacc5df330e (patch) | |
tree | 7a960765e647aaca1340d393f9e253acd57979b0 /mailmap.c | |
parent | 384b32c09b3c7e36b4d65ae80fc758d75dba3fc2 (diff) | |
download | git-fd99b36134a047b8c5ba1230323e7cacc5df330e.tar.gz |
mailmap: fix bogus for() loop that happened to be safe by accident
The empty loop pretended to have an empty statement as its body by a
phony indentation, but in fact was slurping the next statement into it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.c')
-rw-r--r-- | mailmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -42,9 +42,10 @@ int read_mailmap(struct path_list *map, const char *filename, char **repo_abbrev continue; if (right_bracket == left_bracket + 1) continue; - for (end_of_name = left_bracket; end_of_name != buffer - && isspace(end_of_name[-1]); end_of_name--) - /* keep on looking */ + for (end_of_name = left_bracket; + end_of_name != buffer && isspace(end_of_name[-1]); + end_of_name--) + ; /* keep on looking */ if (end_of_name == buffer) continue; name = xmalloc(end_of_name - buffer + 1); |