curses: Check if value is provided for ngraph
Fixes: CID 49001 Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
parent
22c83ceb1a
commit
3cff7715ce
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user