[evolution-data-server] Fix "may be used uninitialized" warning



commit 075181b472fc4d3dcd92425dded2a2acc131f747
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Fri Apr 25 01:26:31 2014 +0200

    Fix "may be used uninitialized" warning

 camel/camel-mime-part.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 50f117b..bafa449 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -797,6 +797,7 @@ mime_part_write_to_output_stream_sync (CamelDataWrapper *dw,
                        if (val == NULL) {
                                g_warning ("h->value is NULL here for %s", h->name);
                                bytes_written = 0;
+                               result = 0;
                        } else if ((writefn = g_hash_table_lookup (header_formatted_table, h->name)) == NULL) 
{
                                val = camel_header_fold (val, strlen (h->name));
                                result = write_header (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]