]> granicus.if.org Git - neomutt/commitdiff
fix shadow variable
authorRichard Russon <rich@flatcap.org>
Thu, 16 Nov 2017 03:21:55 +0000 (03:21 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 26 Nov 2017 22:43:19 +0000 (22:43 +0000)
attach.c

index 559ef66cea49188e4de10a38d1afcaf69e8a561a..061ddb991b0249e75023b9df6e705fbfdf6d778c 100644 (file)
--- a/attach.c
+++ b/attach.c
@@ -532,11 +532,11 @@ int mutt_view_attachment(FILE *fp, struct Body *a, int flag, struct Header *hdr,
     else
     {
       /* interactive command */
-      int rc = mutt_system(command);
-      if (rc == -1)
+      int rv = mutt_system(command);
+      if (rv == -1)
         mutt_debug(1, "Error running \"%s\"!", command);
 
-      if ((rc != 0) || (entry->needsterminal && option(OPT_WAIT_KEY)))
+      if ((rv != 0) || (entry->needsterminal && option(OPT_WAIT_KEY)))
         mutt_any_key_to_continue(NULL);
     }
   }