Code

inserted PRINT checker at the wrong point ...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 28 Apr 2002 19:13:04 +0000 (19:13 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 28 Apr 2002 19:13:04 +0000 (19:13 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@132 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 55f6cee037f1a63aeb25540c687960c3d9459d30..89a67c087c58a67a4fd227e8cb0f983ae8eb0c49 100644 (file)
@@ -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; }