r2961 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Thu Sep 13 11:16:55 CEST 2007


Author: thomas
Date: 2007-09-13 11:16:53 +0200 (Thu, 13 Sep 2007)
New Revision: 2961

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:
* src/moko-contacts.c: (moko_contacts_lookup): Protect against empty number
value. Should fix bug 819.


Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-09-13 09:07:52 UTC (rev 2960)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-09-13 09:16:53 UTC (rev 2961)
@@ -1,3 +1,8 @@
+2007-09-13  Thomas Wood  <thomas at openedhand.com>
+
+	* src/moko-contacts.c: (moko_contacts_lookup): Protect against empty number
+	value. Should fix bug 819.
+
 2007-09-09	Michael Lauer <mickey at openmoko.org>
 
 	* src/moko-dialer.c: Fix typo and allow dialing when

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-09-13 09:07:52 UTC (rev 2960)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c	2007-09-13 09:16:53 UTC (rev 2961)
@@ -201,6 +201,7 @@
   MokoContactEntry *entry;
 
   g_return_val_if_fail (MOKO_IS_CONTACTS (contacts), NULL);
+  g_return_val_if_fail (number, NULL);
   priv = contacts->priv;
   
   entry =  g_hash_table_lookup (priv->prefixes, number);





More information about the commitlog mailing list