[gnome-photos/wip/rishi/unit-tests-gegl: 3/3] assert



commit 1c6e634fc94f2b4aa07bfbf3bd9dd93ffbb44362
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Nov 19 23:28:21 2018 +0100

    assert

 src/photos-gegl.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/photos-gegl.c b/src/photos-gegl.c
index 819309c0..35b7e45e 100644
--- a/src/photos-gegl.c
+++ b/src/photos-gegl.c
@@ -102,6 +102,7 @@ photos_gegl_buffer_apply_orientation (GeglBuffer *buffer_original, GQuark orient
   GeglRectangle bbox_original;
   gint bpp;
 
+  g_return_val_if_fail (GEGL_IS_BUFFER (buffer_original), NULL);
   g_return_val_if_fail (orientation == PHOTOS_ORIENTATION_BOTTOM
                         || orientation == PHOTOS_ORIENTATION_BOTTOM_MIRROR
                         || orientation == PHOTOS_ORIENTATION_LEFT


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]