summaryrefslogtreecommitdiff
path: root/src/core/settings.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2014-07-12 16:35:42 -0400
committerDavid Hill <dhill@conformal.com>2014-07-12 16:35:42 -0400
commit6e45d683991a3269c3cfe63d981bddcd92da0406 (patch)
tree7993fd384a96e00bbd6277da80a83ce80eb87189 /src/core/settings.c
parent9fd1e2f5dadcf491755e0de26871c4a1a5c35394 (diff)
downloadirssi-6e45d683991a3269c3cfe63d981bddcd92da0406.zip
Avoid using uninitalized values.
Diffstat (limited to 'src/core/settings.c')
-rw-r--r--src/core/settings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index 9f527ebe..2296909e 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -121,7 +121,7 @@ int settings_get_bool(const char *key)
int settings_get_time(const char *key)
{
const char *str;
- int msecs;
+ int msecs = 0;
str = settings_get_str_type(key, SETTING_TYPE_TIME);
if (str != NULL && !parse_time_interval(str, &msecs))
@@ -140,7 +140,7 @@ int settings_get_level(const char *key)
int settings_get_size(const char *key)
{
const char *str;
- int bytes;
+ int bytes = 0;
str = settings_get_str_type(key, SETTING_TYPE_SIZE);
if (str != NULL && !parse_size(str, &bytes))