Skip to content

Commit

Permalink
native: Don't compare a pointer with 0
Browse files Browse the repository at this point in the history
We have NULL for that.
  • Loading branch information
baedert committed Sep 11, 2019
1 parent 8ec1c86 commit 32b84b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gtk/gtknative.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ gtk_native_get_renderer (GtkNative *self)

void
gtk_native_get_surface_transform (GtkNative *self,
int *x,
int *y)
int *x,
int *y)
{
g_return_if_fail (GTK_IS_NATIVE (self));
g_return_if_fail (x != 0);
g_return_if_fail (y != 0);
g_return_if_fail (x != NULL);
g_return_if_fail (y != NULL);

return GTK_NATIVE_GET_IFACE (self)->get_surface_transform (self, x, y);
}
Expand Down

0 comments on commit 32b84b8

Please sign in to comment.