projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
"list graphs" action: Don't show graphs without instances.
[collection4.git]
/
src
/
action_list_graphs.c
diff --git
a/src/action_list_graphs.c
b/src/action_list_graphs.c
index
2b26043
..
7973a08
100644
(file)
--- a/
src/action_list_graphs.c
+++ b/
src/action_list_graphs.c
@@
-135,6
+135,9
@@
static int print_graph_html (graph_config_t *cfg, /* {{{ */
char params[1024];
char title[1024];
+ if (graph_num_instances (cfg) < 1)
+ return (0);
+
memset (title, 0, sizeof (title));
graph_get_title (cfg, title, sizeof (title));
html_escape_buffer (title, sizeof (title));