]> granicus.if.org Git - neomutt/commitdiff
rename local variable for clarity
authorRichard Russon <rich@flatcap.org>
Thu, 6 Jun 2019 12:36:57 +0000 (13:36 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 7 Jun 2019 00:23:56 +0000 (01:23 +0100)
main.c

diff --git a/main.c b/main.c
index a999fa3b0e6e09668b089b46817fa30f69633b98..480a8972602a6bcd681483889a3b4be464b19e48 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1032,25 +1032,25 @@ int main(int argc, char *argv[], char *envp[])
 
     if (!STAILQ_EMPTY(&attach))
     {
-      struct Body *a = msg->content;
+      struct Body *b = msg->content;
 
-      while (a && a->next)
-        a = a->next;
+      while (b && b->next)
+        b = b->next;
 
       struct ListNode *np = NULL;
       STAILQ_FOREACH(np, &attach, entries)
       {
-        if (a)
+        if (b)
         {
-          a->next = mutt_make_file_attach(np->data);
-          a = a->next;
+          b->next = mutt_make_file_attach(np->data);
+          b = b->next;
         }
         else
         {
-          a = mutt_make_file_attach(np->data);
-          msg->content = a;
+          b = mutt_make_file_attach(np->data);
+          msg->content = b;
         }
-        if (!a)
+        if (!b)
         {
           mutt_error(_("%s: unable to attach file"), np->data);
           mutt_list_free(&attach);