message_file_get_header: Use break where more clear than continue.
authorCarl Worth <cworth@cworth.org>
Wed, 18 Nov 2009 02:37:45 +0000 (18:37 -0800)
committerCarl 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

index 197ab0143f18e029cdd3b8858ce087fde507c3a4..3a1a681de5299eeca679800c8e045b83d6507b0d 100644 (file)
@@ -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;