tracker r2788 - in trunk: . src/tracker-indexer/modules
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2788 - in trunk: . src/tracker-indexer/modules
- Date: Tue, 13 Jan 2009 14:44:45 +0000 (UTC)
Author: carlosg
Date: Tue Jan 13 14:44:44 2009
New Revision: 2788
URL: http://svn.gnome.org/viewvc/tracker?rev=2788&view=rev
Log:
2009-01-13 Carlos Garnacho <carlos imendio com>
* src/tracker-indexer/modules/evolution-pop.c (get_message_flags): Fix
potential crasher.
Modified:
trunk/ChangeLog
trunk/src/tracker-indexer/modules/evolution-pop.c
Modified: trunk/src/tracker-indexer/modules/evolution-pop.c
==============================================================================
--- trunk/src/tracker-indexer/modules/evolution-pop.c (original)
+++ trunk/src/tracker-indexer/modules/evolution-pop.c Tue Jan 13 14:44:44 2009
@@ -292,6 +292,11 @@
const gchar *header, *pos;
header = g_mime_message_get_header (message, "X-Evolution");
+
+ if (!header) {
+ return 0;
+ }
+
pos = strchr (header, '-');
return (guint) strtoul (pos + 1, NULL, 16);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]