From: Timo Kokkonen Date: Sat, 9 Jul 2016 18:28:04 +0000 (+0300) Subject: config: Fix confusion between pre_draw_cmd and post_draw_cmd X-Git-Url: http://git.itanic.dy.fi/?p=rrdd;a=commitdiff_plain;h=9e63a0f14a9d367e56f817a0592eaa434eb6071b config: Fix confusion between pre_draw_cmd and post_draw_cmd When specifying post_draw_cmd on the config, it was interpreted as predraw_cmd instead. Fix the incorrect behavior.. Signed-off-by: Timo Kokkonen --- diff --git a/config.c b/config.c index 8ac1b63..81ba188 100644 --- a/config.c +++ b/config.c @@ -278,7 +278,7 @@ static int parse_database(config_setting_t *rrd, struct rrd_database *db) str_list = config_setting_get_member(rrd, "post_draw_cmd"); if (str_list) { read_strings_from_list(str_list, &post_draw_cmd); - db->pre_draw_cmd = (char *const *)post_draw_cmd; + db->post_draw_cmd = (char *const *)post_draw_cmd; } config_setting_lookup_string(rrd, "logfile", &logfile);