From: Federico Kircheis Date: Wed, 28 Feb 2018 19:32:03 +0000 (+0100) Subject: Restore old behaviour X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13db68017d4a1d05d7c014ce574cf4c2b2d4db01;p=neomutt Restore old behaviour and remove unused variable --- diff --git a/color.c b/color.c index 62d3b21d7..178f8bc84 100644 --- 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;