projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d025e89
)
message_file_get_header: Use break where more clear than continue.
author
Carl Worth
<cworth@cworth.org>
Wed, 18 Nov 2009 02:37:45 +0000
(18:37 -0800)
committer
Carl Worth
<cworth@cworth.org>
Wed, 18 Nov 2009 02:37:45 +0000
(18:37 -0800)
Calling continue here worked only because we set a flag before the
continue, and, check the flag at the beginning of the loop, and *then*
break. It's much more clear to just break in the first place.
lib/message-file.c
patch
|
blob
|
history
diff --git
a/lib/message-file.c
b/lib/message-file.c
index 197ab0143f18e029cdd3b8858ce087fde507c3a4..3a1a681de5299eeca679800c8e045b83d6507b0d 100644
(file)
--- a/
lib/message-file.c
+++ b/
lib/message-file.c
@@
-282,7
+282,7
@@
notmuch_message_file_get_header (notmuch_message_file_t *message,
message->good_headers < 5)
{
message->parsing_finished = 1;
-
continue
;
+
break
;
}
NEXT_HEADER_LINE (NULL);
continue;