]> granicus.if.org Git - neomutt/commitdiff
Restore old behaviour
authorFederico Kircheis <federico.kircheis@gmail.com>
Wed, 28 Feb 2018 19:32:03 +0000 (20:32 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 28 Feb 2018 19:32:03 +0000 (20:32 +0100)
and remove unused variable

color.c

diff --git a/color.c b/color.c
index 62d3b21d78650b3ed14b45ef01033fc6f398db58..178f8bc84166ef77a67a147230fa6217bf1ffe0e 100644 (file)
--- a/color.c
+++ b/color.c
@@ -684,8 +684,6 @@ static int add_pattern(struct ColorLineHead *top, const char *s, int sensitive,
 static int parse_object(struct Buffer *buf, struct Buffer *s, int *o, int *ql,
                         struct Buffer *err)
 {
-  int q_level = 0;
-
   if (!MoreArgs(s))
   {
     mutt_str_strfcpy(err->data, _("Missing arguments."), err->dsize);
@@ -699,7 +697,7 @@ static int parse_object(struct Buffer *buf, struct Buffer *s, int *o, int *ql,
     {
       char *eptr = NULL;
       *ql = strtol(buf->data + 6, &eptr, 10);
-      if (*eptr || q_level < 0)
+      if (*eptr || *ql < 0)
       {
         snprintf(err->data, err->dsize, _("%s: no such object"), buf->data);
         return -1;