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



commit 2396038b2b234feb55a44cad5f4837551b495722
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 2f2f667..19f8a39 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -406,6 +406,8 @@ photos_pipeline_save_async (PhotosPipeline *self,
   gchar *xml;
   gsize len;
 
+  g_return_if_fail (self->uri != NULL);
+
   task = g_task_new (self, cancellable, callback, user_data);
   g_task_set_source_tag (task, photos_pipeline_save_async);
 


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