[gnome-builder] libide: use proper gfail macro



commit 1ecf716969b8f3758c1e3cd68bb9051b2c74b564
Author: Christian Hergert <christian hergert me>
Date:   Sat Feb 7 15:58:46 2015 -0800

    libide: use proper gfail macro

 libide/tasks/ide-load-directory-task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/tasks/ide-load-directory-task.c b/libide/tasks/ide-load-directory-task.c
index 6a73f39..1cef4c8 100644
--- a/libide/tasks/ide-load-directory-task.c
+++ b/libide/tasks/ide-load-directory-task.c
@@ -64,7 +64,7 @@ task_state_unref (TaskState *state)
 static TaskState *
 task_state_ref (TaskState *state)
 {
-  g_return_if_fail (state->ref_count > 0);
+  g_return_val_if_fail (state->ref_count > 0, NULL);
 
   ++state->ref_count;
 


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