]> git.itanic.dy.fi Git - rrdd/commitdiff
config: Fix confusion between pre_draw_cmd and post_draw_cmd
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 18:28:04 +0000 (21:28 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 18:28:04 +0000 (21:28 +0300)
When specifying post_draw_cmd on the config, it was interpreted as
predraw_cmd instead. Fix the incorrect behavior..

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
config.c

index 8ac1b63a867fad23e727938afad3fdcdf9792ebc..81ba1880c64cd9a77938efe4ea16a3c413eb692a 100644 (file)
--- 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);