summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-12-10 15:02:21 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-12-10 15:02:21 +0000
commit63622e3ad9e04d435f01061a609ea265150db6a7 (patch)
treea4fc6dd0acf5cecbd285d3008afcd4970d827c52
parentd531c1a9e844c1c6f2c13774b3f6ed62178cb557 (diff)
downloadmailutils-63622e3ad9e04d435f01061a609ea265150db6a7.tar.gz
mailutils-63622e3ad9e04d435f01061a609ea265150db6a7.tar.bz2
Initialize automatic variable.
-rw-r--r--imap4d/util.c2
-rw-r--r--libsieve/tests.c2
-rw-r--r--mail/util.c2
-rw-r--r--mailbox/address.c4
-rw-r--r--mailbox/file_stream.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/imap4d/util.c b/imap4d/util.c
index de016373f..359386423 100644
--- a/imap4d/util.c
+++ b/imap4d/util.c
@@ -966,7 +966,7 @@ util_localname ()
{
char *name;
int name_len = 256;
- int status;
+ int status = 1;
struct hostent *hp;
name = malloc (name_len);
diff --git a/libsieve/tests.c b/libsieve/tests.c
index 91ae28ae2..6823d6491 100644
--- a/libsieve/tests.c
+++ b/libsieve/tests.c
@@ -242,7 +242,7 @@ sieve_test_envelope (sieve_machine_t mach, list_t args, list_t tags)
int
sieve_test_size (sieve_machine_t mach, list_t args, list_t tags)
{
- int rc;
+ int rc = 1;
sieve_runtime_tag_t *tag = NULL;
size_t size;
diff --git a/mail/util.c b/mail/util.c
index 1714eba3c..ca9b8a023 100644
--- a/mail/util.c
+++ b/mail/util.c
@@ -83,7 +83,7 @@ util_do_command (const char *c, ...)
int argc = 0;
char **argv = NULL;
int status = 0;
- function_t *command;
+ function_t *command = NULL;
int exec = 1;
char *cmd = NULL;
va_list ap;
diff --git a/mailbox/address.c b/mailbox/address.c
index 58fcab591..a6b88174a 100644
--- a/mailbox/address.c
+++ b/mailbox/address.c
@@ -330,7 +330,7 @@ address_format_string (address_t addr, char *buf, size_t buflen)
int
address_aget_personal (address_t addr, size_t no, char **buf)
{
- int status;
+ int status = 0;
address_t subaddr;
if (addr == NULL)
@@ -354,7 +354,7 @@ address_aget_personal (address_t addr, size_t no, char **buf)
int
address_aget_comments (address_t addr, size_t no, char **buf)
{
- int status;
+ int status = 0;
address_t subaddr;
if (addr == NULL)
diff --git a/mailbox/file_stream.c b/mailbox/file_stream.c
index b432fd74e..a993a3044 100644
--- a/mailbox/file_stream.c
+++ b/mailbox/file_stream.c
@@ -186,7 +186,7 @@ _stdin_file_read (stream_t stream, char *optr, size_t osize,
return stream_read (fs->cache, optr, osize, offset, pnbytes);
else if (offset > fs_offset)
{
- int status;
+ int status = 0;
size_t n, left = offset - fs_offset + 1;
char *buf = malloc (left);
if (!buf)

Return to:

Send suggestions and report system problems to the System administrator.