[gnome-builder/wip/libide: 18/153] libide: use proper gfail macro



commit f54eaad3f9d3c083f93098b4f1104ab0f0bc740a
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]