dovecot-2.2: Compiler warning fixes

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 13 05:45:50 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/7bda77ccd1fc
changeset: 14891:7bda77ccd1fc
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 13 05:45:35 2012 +0300
description:
Compiler warning fixes

diffstat:

 src/config/config-parser.c              |  2 ++
 src/doveadm/dsync/dsync-brain-mailbox.c |  2 ++
 src/master/main.c                       |  2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)

diffs (36 lines):

diff -r cf4f7871cd5d -r 7bda77ccd1fc src/config/config-parser.c
--- a/src/config/config-parser.c	Mon Aug 13 02:57:37 2012 +0300
+++ b/src/config/config-parser.c	Mon Aug 13 05:45:35 2012 +0300
@@ -428,6 +428,8 @@
 	int fd;
 	ssize_t ret;
 
+	*error_r = NULL;
+
 	fd = open(path, O_RDONLY);
 	if (fd == -1) {
 		*error_r = t_strdup_printf("%s: Can't open file %s: %m",
diff -r cf4f7871cd5d -r 7bda77ccd1fc src/doveadm/dsync/dsync-brain-mailbox.c
--- a/src/doveadm/dsync/dsync-brain-mailbox.c	Mon Aug 13 02:57:37 2012 +0300
+++ b/src/doveadm/dsync/dsync-brain-mailbox.c	Mon Aug 13 05:45:35 2012 +0300
@@ -296,6 +296,8 @@
 	bool synced = FALSE;
 	int ret;
 
+	*box_r = NULL;
+
 	while (dsync_mailbox_tree_iter_next(brain->local_tree_iter, &vname, &node)) {
 		if (node->existence == DSYNC_MAILBOX_NODE_EXISTS &&
 		    !guid_128_is_empty(node->mailbox_guid))
diff -r cf4f7871cd5d -r 7bda77ccd1fc src/master/main.c
--- a/src/master/main.c	Mon Aug 13 02:57:37 2012 +0300
+++ b/src/master/main.c	Mon Aug 13 05:45:35 2012 +0300
@@ -222,6 +222,8 @@
 	ssize_t ret;
 	bool found;
 
+	*pid_r = (pid_t)-1;
+
 	fd = open(path, O_RDONLY);
 	if (fd == -1) {
 		if (errno == ENOENT)


More information about the dovecot-cvs mailing list