diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-22 20:33:06 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-22 20:33:06 +0000 |
commit | 082687fc204c7b40bf676ad710c2488048571b73 (patch) | |
tree | 59b356c4d4cc86122ef42c46d9500ddeb93ba6bc /src/common/conf.c | |
parent | a31d779891778d76d1c0fac3544e6dd1627da98a (diff) | |
download | hercules-082687fc204c7b40bf676ad710c2488048571b73.tar.gz hercules-082687fc204c7b40bf676ad710c2488048571b73.tar.bz2 hercules-082687fc204c7b40bf676ad710c2488048571b73.tar.xz hercules-082687fc204c7b40bf676ad710c2488048571b73.zip |
Major cleanup all over the place, made possible by mkbu95's scan-build report he provided us with.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16687 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/conf.c')
-rw-r--r-- | src/common/conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/conf.c b/src/common/conf.c index a5bfec159..3057bd4dc 100644 --- a/src/common/conf.c +++ b/src/common/conf.c @@ -66,11 +66,11 @@ void config_setting_copy_elem(config_setting_t *parent, const config_setting_t * set = config_setting_set_int64_elem(parent, -1, config_setting_get_int64(src)); config_setting_set_format(set, src->format); } else if (CONFIG_TYPE_FLOAT == config_setting_type(src)) { - set = config_setting_set_float_elem(parent, -1, config_setting_get_float(src)); + config_setting_set_float_elem(parent, -1, config_setting_get_float(src)); } else if (CONFIG_TYPE_STRING == config_setting_type(src)) { - set = config_setting_set_string_elem(parent, -1, config_setting_get_string(src)); + config_setting_set_string_elem(parent, -1, config_setting_get_string(src)); } else if (CONFIG_TYPE_BOOL == config_setting_type(src)) { - set = config_setting_set_bool_elem(parent, -1, config_setting_get_bool(src)); + config_setting_set_bool_elem(parent, -1, config_setting_get_bool(src)); } } |