[gnome-photos/wip/rishi/misc-fixes: 10/20] pipeline: Be more strict about what is acceptable



commit 9bc98211a7f14612ca4b2bdd07045dc96552589d
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Dec 18 20:16:26 2015 +0100

    pipeline: Be more strict about what is acceptable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759363

 src/photos-pipeline.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index 8973ea0..0e74739 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -406,6 +406,8 @@ photos_pipeline_save_async (PhotosPipeline *self,
   gchar *xml = NULL;
   gsize len;
 
+  g_return_if_fail (self->uri != NULL);
+
   xml = photos_pipeline_to_xml (self);
   g_return_if_fail (xml != NULL);
 


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