r2646 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src
njp at sita.openmoko.org
njp at sita.openmoko.org
Mon Aug 6 15:01:34 CEST 2007
Author: njp
Date: 2007-08-06 15:01:32 +0200 (Mon, 06 Aug 2007)
New Revision: 2646
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c
Log:
2007-08-06 Neil J. Patel <njp at o-hand.com>
* src/moko-contacts.c: (moko_contacts_lookup):
Check entry is valid before performing operations on it.
Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog 2007-08-06 12:46:07 UTC (rev 2645)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog 2007-08-06 13:01:32 UTC (rev 2646)
@@ -1,5 +1,10 @@
2007-08-06 Neil J. Patel <njp at o-hand.com>
+ * src/moko-contacts.c: (moko_contacts_lookup):
+ Check entry is valid before performing operations on it.
+
+2007-08-06 Neil J. Patel <njp at o-hand.com>
+
* configure.ac:
* src/Makefile.am:
* src/dialer-main.c: (main):
Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c 2007-08-06 12:46:07 UTC (rev 2645)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c 2007-08-06 13:01:32 UTC (rev 2646)
@@ -37,7 +37,7 @@
{
EBook *book;
- GList *contacts;
+ List *contacts;
GList *entries;
GHashTable *prefixes;
};
@@ -89,7 +89,7 @@
entry = g_hash_table_lookup (priv->prefixes, number);
- if (!GDK_IS_PIXBUF (entry->contact->photo))
+ if (entry && !GDK_IS_PIXBUF (entry->contact->photo))
moko_contacts_get_photo (contacts, entry->contact);
return entry;
More information about the commitlog
mailing list