From 9e63a0f14a9d367e56f817a0592eaa434eb6071b Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sat, 9 Jul 2016 21:28:04 +0300 Subject: [PATCH] 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 --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.45.0