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