[evolution-patches] Patch: fix warning in camel
- From: Frederic Crozat <fcrozat mandrakesoft com>
- To: Evolution Patches <evolution-patches lists ximian com>
- Subject: [evolution-patches] Patch: fix warning in camel
- Date: Wed, 25 Aug 2004 15:09:28 +0200
The attached patch fixes an "uninitialized variable" warning and remove
a redefinition of the same variable.
--
Frederic Crozat <fcrozat mandrakesoft com>
Mandrakesoft
? .camel-folder.c.swp
? warnings2.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
retrieving revision 1.2249
diff -u -p -r1.2249 ChangeLog
--- ChangeLog 24 Aug 2004 14:02:21 -0000 1.2249
+++ ChangeLog 25 Aug 2004 13:06:15 -0000
@@ -1,3 +1,8 @@
+2004-08-25 Frederic Crozat <fcrozat mandrakesoft com>
+
+ * camel-folder.c: (folder_getv):
+ Init one variable (remove warning) and don't redefine it.
+
2004-08-23 Not Zed <NotZed Ximian com>
** See bug #63189.
Index: camel-folder.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/camel-folder.c,v
retrieving revision 1.203
diff -u -p -r1.203 camel-folder.c
--- camel-folder.c 21 May 2004 09:08:09 -0000 1.203
+++ camel-folder.c 25 Aug 2004 13:06:15 -0000
@@ -313,7 +313,7 @@ folder_getv(CamelObject *object, CamelEx
CamelFolder *folder = (CamelFolder *)object;
int i;
guint32 tag;
- int unread = -1, deleted = 0, junked = 0, visible = 0, count;
+ int unread = -1, deleted = 0, junked = 0, visible = 0, count = -1;
for (i=0;i<args->argc;i++) {
CamelArgGet *arg = &args->argv[i];
@@ -389,7 +389,7 @@ folder_getv(CamelObject *object, CamelEx
*arg->ca_int = count;
break;
case CAMEL_FOLDER_ARG_UID_ARRAY: {
- int j, count;
+ int j;
CamelMessageInfo *info;
GPtrArray *array;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]