[dia] DiaContext w/o dia_context_set_filename is legal



commit 91d9593923d2754358c5b84e3286b7fba3087dd1
Author: Hans Breuer <hans breuer org>
Date:   Thu Dec 19 21:47:22 2013 +0100

    DiaContext w/o dia_context_set_filename is legal

 lib/diacontext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/diacontext.c b/lib/diacontext.c
index 518fb6a..75d477e 100644
--- a/lib/diacontext.c
+++ b/lib/diacontext.c
@@ -116,7 +116,7 @@ dia_context_set_filename (DiaContext *context,
 const char *
 dia_context_get_filename (DiaContext *context)
 {
-  g_return_val_if_fail (context != NULL && context->filename, "");
+  g_return_val_if_fail (context != NULL, "");
 
   return context->filename;
 }


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