diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-03-22 15:19:59 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-03-22 15:19:59 -0400 |
commit | 70f6faf0f1d1011f75cde28796ff5a3405cc5a78 (patch) | |
tree | d0cbc67397aacd98e6b811366a00e0c2369fa402 | |
parent | c723eba1353f973e7ef6cb5f921cb109961cd9d8 (diff) | |
download | gtk+-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.c | 4 |
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; |