]> git.itanic.dy.fi Git - rrdd/commitdiff
config.c: Fix macro variable usage
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 23 Jun 2012 10:46:05 +0000 (13:46 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 23 Jun 2012 10:46:05 +0000 (13:46 +0300)
The variable name was missing an underscore, thus it was using the
variable outside of its parameter list.

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

index db77a2e62969da342b62559507e575fe5fe22811..7b78e3a607c08398c0d7c0ac1c3c95966c07c37e 100644 (file)
--- a/config.c
+++ b/config.c
@@ -329,7 +329,7 @@ out:
 
 #define CONFIG_ADD_STRING(_config, _setting, _name, _val)              \
        do {                                                            \
-               setting = config_setting_add(_config, _name,            \
+               _setting = config_setting_add(_config, _name,           \
                                        CONFIG_TYPE_STRING);            \
                config_setting_set_string(_setting, _val);              \
        } while (0);                                                    \