summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-08-24 20:48:12 +0200
committerThomas Graf <tgraf@suug.ch>2014-08-24 20:48:12 +0200
commit3cff7715ce795937f246c65576b762892c3d34b9 (patch)
treeccd761fa03323a8b96e74099ee922347374443e7
parent22c83ceb1a089c1af9a8d1707fc92d84388d465b (diff)
curses: Check if value is provided for ngraph
Fixes: CID 49001 Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--src/out_curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/out_curses.c b/src/out_curses.c
index 4d64169..df50f1d 100644
--- a/src/out_curses.c
+++ b/src/out_curses.c
@@ -1256,7 +1256,7 @@ static void curses_parse_opt(const char *type, const char *value)
c_graph_cfg.gc_height = strtol(value, NULL, 0);
else if (!strcasecmp(type, "gwidth") && value)
c_graph_cfg.gc_width = strtol(value, NULL, 0);
- else if (!strcasecmp(type, "ngraph")) {
+ else if (!strcasecmp(type, "ngraph") && value) {
c_ngraph = strtol(value, NULL, 0);
c_show_graph = !!c_ngraph;
} else if (!strcasecmp(type, "details"))