]> granicus.if.org Git - neomutt/commitdiff
Replace `new` variable with `new_tag`
authorFederico Kircheis <federico.kircheis@gmail.com>
Wed, 3 Jul 2019 19:22:45 +0000 (21:22 +0200)
committerRichard Russon <rich@flatcap.org>
Fri, 5 Jul 2019 01:34:06 +0000 (02:34 +0100)
`new` is a reserved keyword in c++

imap/imap.c

index 3dd3e491cc0490f9dfe1c4a8bfcaba3b80ea7dce..5dc84b9de79a44ccaead1e38e63e16284ab18904 100644 (file)
@@ -2272,7 +2272,7 @@ static int imap_tags_edit(struct Mailbox *m, const char *tags, char *buf, size_t
   if (!mdata)
     return -1;
 
-  char *new = NULL;
+  char *new_tag = NULL;
   char *checker = NULL;
 
   /* Check for \* flags capability */
@@ -2302,7 +2302,7 @@ static int imap_tags_edit(struct Mailbox *m, const char *tags, char *buf, size_t
    * And must be separated by one space.
    */
 
-  new = buf;
+  new_tag = buf;
   checker = buf;
   SKIPWS(checker);
   while (*checker != '\0')
@@ -2330,12 +2330,12 @@ static int imap_tags_edit(struct Mailbox *m, const char *tags, char *buf, size_t
     while ((checker[0] == ' ') && (checker[1] == ' '))
       checker++;
 
-    /* copy char to new and go the next one */
-    *new ++ = *checker++;
+    /* copy char to new_tag and go the next one */
+    *new_tag++ = *checker++;
   }
-  *new = '\0';
-  new = buf; /* rewind */
-  mutt_str_remove_trailing_ws(new);
+  *new_tag = '\0';
+  new_tag = buf; /* rewind */
+  mutt_str_remove_trailing_ws(new_tag);
 
   if (mutt_str_strcmp(tags, buf) == 0)
     return 0;