r1962 - trunk/src/target/OM-2007/applications/openmoko-dialer/src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Wed May 16 11:49:34 CEST 2007


Author: thomas
Date: 2007-05-16 11:49:34 +0200 (Wed, 16 May 2007)
New Revision: 1962

Modified:
   trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c
Log:
openmoko-dialer: check journal is available before accessing it


Modified: trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c	2007-05-16 09:35:40 UTC (rev 1961)
+++ trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c	2007-05-16 09:49:34 UTC (rev 1962)
@@ -645,7 +645,7 @@
   /* if there aren't any entries in the journal, we don't need to do any more
    * here
    */
-  if (moko_journal_get_nb_entries (p_dialer_data->journal))
+  if (!p_dialer_data->journal || moko_journal_get_nb_entries (p_dialer_data->journal))
     return 1;
 
   j_entry = moko_journal_entry_new (VOICE_JOURNAL_ENTRY);





More information about the commitlog mailing list