From: Timm Bäder Date: Tue, 10 Sep 2019 13:28:31 +0000 (+0200) Subject: native: Don't compare a pointer with 0 X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~860 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=32b84b8ab6e1506e8e47531d552d7f5900b30e26;p=gtk4.git native: Don't compare a pointer with 0 We have NULL for that. --- diff --git a/gtk/gtknative.c b/gtk/gtknative.c index a14a0af864..6b079987ea 100644 --- a/gtk/gtknative.c +++ b/gtk/gtknative.c @@ -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); }