inserted PRINT checker at the wrong point ...
[rrdtool.git] / src / rrd_graph.c
index 55f6cee..89a67c0 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; }