summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@irssi.org>2010-04-04 12:19:54 +0000
committerahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564>2010-04-04 12:19:54 +0000
commitdaf6adc0b098fdae473e8276cab88ebec6a3ae09 (patch)
treeb58e5480580687bb9b1ce01c8e8de552589c576e /src/core
parentada26a8d21d1c57e17b6dcc6293ca1ba3a852f8c (diff)
downloadirssi-daf6adc0b098fdae473e8276cab88ebec6a3ae09.zip
Remove warnings about uninitialized variables.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5140 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/settings.c2
-rw-r--r--src/core/special-vars.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index bfcead3e..9f527ebe 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -150,7 +150,7 @@ int settings_get_size(const char *key)
char *settings_get_print(SETTINGS_REC *rec)
{
- char *value;
+ char *value = NULL;
switch(rec->type) {
case SETTING_TYPE_BOOLEAN:
diff --git a/src/core/special-vars.c b/src/core/special-vars.c
index 33e9fce7..4dcc3d2f 100644
--- a/src/core/special-vars.c
+++ b/src/core/special-vars.c
@@ -352,8 +352,8 @@ char *parse_special(char **cmd, SERVER_REC *server, void *item,
static char **nested_orig_cmd = NULL; /* FIXME: KLUDGE! */
char command, *value;
- char align_pad;
- int align, align_flags;
+ char align_pad = '\0';
+ int align = 0, align_flags = 0;
char *nest_value;
int brackets, nest_free;