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



commit 132de186316b8644f35bafabcb9f9a50654d3a9f
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 b3b02cff..7788b758 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]