diff options
author | Thomas Graf <tgraf@suug.ch> | 2014-08-24 20:48:12 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2014-08-24 20:48:12 +0200 |
commit | 3cff7715ce795937f246c65576b762892c3d34b9 (patch) | |
tree | ccd761fa03323a8b96e74099ee922347374443e7 /src | |
parent | 22c83ceb1a089c1af9a8d1707fc92d84388d465b (diff) |
curses: Check if value is provided for ngraph
Fixes: CID 49001
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'src')
-rw-r--r-- | src/out_curses.c | 2 |
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")) |