native: Don't compare a pointer with 0
authorTimm Bäder <mail@baedert.org>
Tue, 10 Sep 2019 13:28:31 +0000 (15:28 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 11 Sep 2019 06:12:31 +0000 (08:12 +0200)
We have NULL for that.

gtk/gtknative.c

index a14a0af864131976e7d8a0c07769555647530139..6b079987ea4cd505106d84234cf261c230788968 100644 (file)
@@ -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);
 }