[gnumeric] Code cleanup.



commit 8281dc675533d728ddbce639b3a3527e44d9a51b
Author: Morten Welinder <terra gnome org>
Date:   Wed Apr 23 11:58:42 2014 -0400

    Code cleanup.

 ChangeLog      |    2 ++
 src/complete.c |    4 +---
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 413dbd8..73a0cb4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-04-23  Morten Welinder  <terra gnome org>
 
+       * src/complete.c (complete_idle): Avoid abort().
+
        * src/wbc-gtk.c (cb_update_idle): Clear ->idle when we cancel the
        source.
 
diff --git a/src/complete.c b/src/complete.c
index 180925f..f7bb9f2 100644
--- a/src/complete.c
+++ b/src/complete.c
@@ -68,9 +68,7 @@ complete_idle (gpointer data)
 {
        Complete *complete = data;
 
-       if (complete->idle_tag == 0){
-               abort ();
-       }
+       g_return_val_if_fail (complete->idle_tag != 0, FALSE);
 
        if (ACC(complete)->search_iteration (complete))
                return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]