[gnome-photos] base-item: Be more strict about what is acceptable



commit c03429bf1e8f64ac446ddd395c9d3fe7d755db48
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 29 11:19:29 2015 +0100

    base-item: Be more strict about what is acceptable

 src/photos-base-item.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 0d454bd..1ec4262 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -2134,7 +2134,9 @@ photos_base_item_save_async (PhotosBaseItem *self,
 
   g_return_if_fail (G_IS_FILE (dir));
   g_return_if_fail (priv->edit_graph != NULL);
+  g_return_if_fail (priv->filename != NULL && priv->filename[0] != '\0');
   g_return_if_fail (priv->load_graph != NULL);
+  g_return_if_fail (priv->pipeline != NULL);
   g_return_if_fail (priv->processor != NULL);
   g_return_if_fail (!gegl_processor_work (priv->processor, NULL));
 


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