]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
the %s portion of the printf format is optional
authorTobias Oetiker <tobi@oetiker.ch>
Tue, 16 Sep 2014 09:38:48 +0000 (11:38 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 16 Sep 2014 09:38:48 +0000 (11:38 +0200)
src/rrd_graph.c

index 51afbf0e0958f054efda6e09ef435c81bb3de47b..13fcc86f87c4b3abb29c3ce563a3fd50144c5cc3 100644 (file)
@@ -5089,7 +5089,7 @@ int bad_format_axis(char *fmt){
 }
 
 int bad_format_print(char *fmt){
-    return bad_format_check("^" SAFE_STRING FLOAT_STRING SAFE_STRING "%s" SAFE_STRING "$",fmt);
+    return bad_format_check("^" SAFE_STRING FLOAT_STRING SAFE_STRING "(?:%s)?" SAFE_STRING "$",fmt);
 }
 
 int vdef_parse(