diff options
author | Alexander Færøy <ahf@irssi.org> | 2010-04-04 12:19:54 +0000 |
---|---|---|
committer | ahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2010-04-04 12:19:54 +0000 |
commit | daf6adc0b098fdae473e8276cab88ebec6a3ae09 (patch) | |
tree | b58e5480580687bb9b1ce01c8e8de552589c576e /src | |
parent | ada26a8d21d1c57e17b6dcc6293ca1ba3a852f8c (diff) | |
download | irssi-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')
-rw-r--r-- | src/core/settings.c | 2 | ||||
-rw-r--r-- | src/core/special-vars.c | 4 | ||||
-rw-r--r-- | src/irc/core/servers-redirect.c | 2 |
3 files changed, 4 insertions, 4 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; diff --git a/src/irc/core/servers-redirect.c b/src/irc/core/servers-redirect.c index 3c3c93a6..34beaef6 100644 --- a/src/irc/core/servers-redirect.c +++ b/src/irc/core/servers-redirect.c @@ -513,7 +513,7 @@ server_redirect_get(IRC_SERVER_REC *server, const char *prefix, const char *event, const char *args, REDIRECT_REC **redirect, int *match) { - const char *signal; + const char *signal = NULL; GSList *ptr, *next; REDIRECT_REC *r; |