]> granicus.if.org Git - neomutt/commitdiff
boolify imap_next_word()
authorRichard Russon <rich@flatcap.org>
Tue, 16 Jul 2019 18:07:38 +0000 (19:07 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 16 Jul 2019 18:07:38 +0000 (19:07 +0100)
imap/util.c

index 494f105fb82f035e59440781901a7081046c223e..36acadab525bba04159e91adbe189630840dab3b 100644 (file)
@@ -897,7 +897,7 @@ char *imap_get_qualifier(char *buf)
  */
 char *imap_next_word(char *s)
 {
-  int quoted = 0;
+  bool quoted = false;
 
   while (*s)
   {
@@ -909,7 +909,7 @@ char *imap_next_word(char *s)
       continue;
     }
     if (*s == '\"')
-      quoted = quoted ? 0 : 1;
+      quoted = !quoted;
     if (!quoted && IS_SPACE(*s))
       break;
     s++;