From: oetiker Date: Sun, 28 Apr 2002 19:13:04 +0000 (+0000) Subject: inserted PRINT checker at the wrong point ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70e790748acff9631b71812ecf9b6eaece9f9329;p=rrdtool-all.git inserted PRINT checker at the wrong point ... git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@132 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 55f6cee0..89a67c08 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -3254,13 +3254,13 @@ int bad_format(char *fmt) { ptr++; } if (*ptr == '\0') return 1; + else if (*ptr == ' ') ptr++; + else if (*ptr == '-') ptr++; + else if (*ptr == '+') ptr++; if (*ptr == 'l') { ptr++; n++; if (*ptr == '\0') return 1; - else if (*ptr == ' ') ptr++; - else if (*ptr == '-') ptr++; - else if (*ptr == '+') ptr++; if (*ptr == 'e' || *ptr == 'f') { ptr++; } else { return 1; }