init local exception before doing anything. fixes a crash.
authorNot Zed <NotZed@Ximian.com>
Sun, 5 Jan 2003 23:48:10 +0000 (23:48 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Sun, 5 Jan 2003 23:48:10 +0000 (23:48 +0000)
2003-01-06  Not Zed  <NotZed@Ximian.com>

* camel-store.c (store_sync): init local exception before doing
anything.  fixes a crash.

camel/ChangeLog
camel/camel-store.c

index 25b93b4..f1ff481 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-06  Not Zed  <NotZed@Ximian.com>
+
+       * camel-store.c (store_sync): init local exception before doing
+       anything.  fixes a crash.
+
 2003-01-04  Jeffrey Stedfast  <fejj@ximian.com>
 
        * providers/smtp/camel-smtp-transport.c (smtp_send_to): Instead of
index c6454fc..e023460 100644 (file)
@@ -563,6 +563,7 @@ store_sync (CamelStore *store, CamelException *ex)
                CamelException x;
                int i;
 
+               camel_exception_init(&x);
                folders = camel_object_bag_list(store->folders);
                for (i=0;i<folders->len;i++) {
                        folder = folders->pdata[i];