diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-10-05 15:40:57 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-10-05 15:40:57 +0300 |
commit | 3e13a4112af5136b08c4888f627151baee6a1aee (patch) | |
tree | be9b260f375f3f67515efc9848639abbb67a0ecc | |
parent | dd13dedfe0580e391e2a082ff9d1ac842292a4eb (diff) | |
download | mailutils-3e13a4112af5136b08c4888f627151baee6a1aee.tar.gz mailutils-3e13a4112af5136b08c4888f627151baee6a1aee.tar.bz2 |
Fix uninitialized variables.
* mailbox/debug.c (mu_debug_print): Initialize ap.
* mailbox/list.c (list_itrctl): Initialize ptr.
* mailbox/mailer.c (send_fragments): Initialize status.
-rw-r--r-- | mailbox/debug.c | 1 | ||||
-rw-r--r-- | mailbox/list.c | 1 | ||||
-rw-r--r-- | mailbox/mailer.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/mailbox/debug.c b/mailbox/debug.c index 37f9e4781..b595a7fe6 100644 --- a/mailbox/debug.c +++ b/mailbox/debug.c @@ -234,6 +234,7 @@ mu_debug_print (mu_debug_t debug, mu_log_level_t level, const char *format, ...) { va_list ap; + va_start (ap, format); mu_debug_printv (debug, level, format, ap); va_end (ap); return 0; diff --git a/mailbox/list.c b/mailbox/list.c index f47af2577..55802e2cc 100644 --- a/mailbox/list.c +++ b/mailbox/list.c @@ -599,6 +599,7 @@ list_itrctl (void *owner, enum mu_itrctl_req req, void *arg) /* Replace current element */ if (!arg) return EINVAL; + ptr = itr->cur; if (req == mu_itrctl_replace) DESTROY_ITEM (list, ptr); ptr = itr->cur; diff --git a/mailbox/mailer.c b/mailbox/mailer.c index f2786c89b..bd64683dc 100644 --- a/mailbox/mailer.c +++ b/mailbox/mailer.c @@ -487,7 +487,7 @@ send_fragments (mu_mailer_t mailer, struct timeval *delay, mu_address_t from, mu_address_t to) { - int status; + int status = 0; size_t i; char *msgid = NULL; |