summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-03-22 15:19:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-03-22 15:19:59 -0400
commit70f6faf0f1d1011f75cde28796ff5a3405cc5a78 (patch)
treed0cbc67397aacd98e6b811366a00e0c2369fa402
parentc723eba1353f973e7ef6cb5f921cb109961cd9d8 (diff)
downloadgtk+-70f6faf0f1d1011f75cde28796ff5a3405cc5a78.tar.gz
Don't return G_TYPE_INVALID as a pointer
Use NULL for g_return_val_if_fail checks if the function returns a pointer. Pointed out by clang.
-rw-r--r--gtk/gtkwidgetpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index 7d1019980b..8f3ae065a2 100644
--- a/gtk/gtkwidgetpath.c
+++ b/gtk/gtkwidgetpath.c
@@ -497,8 +497,8 @@ gtk_widget_path_iter_get_siblings (const GtkWidgetPath *path,
{
GtkPathElement *elem;
- g_return_val_if_fail (path != NULL, G_TYPE_INVALID);
- g_return_val_if_fail (path->elems->len != 0, G_TYPE_INVALID);
+ g_return_val_if_fail (path != NULL, NULL);
+ g_return_val_if_fail (path->elems->len != 0, NULL);
if (pos < 0 || pos >= path->elems->len)
pos = path->elems->len - 1;