[dia] [scan-build] Null dereference (not really)



commit 044208fcb3aea532f57b3c528e97ccb7853feb6e
Author: Hans Breuer <hans breuer org>
Date:   Sun Dec 13 17:52:05 2009 +0100

    [scan-build] Null dereference (not really)
    
    Should not happen in real world because without an input
    stylesheet the plug-in would not load at all.

 plug-ins/xslt/xsltdialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/xslt/xsltdialog.c b/plug-ins/xslt/xsltdialog.c
index a7357d9..e898a2c 100644
--- a/plug-ins/xslt/xsltdialog.c
+++ b/plug-ins/xslt/xsltdialog.c
@@ -93,6 +93,8 @@ xslt_dialog_create(void) {
 	fromxsl_t *cur_f = froms;
 	toxsl_t *cur_to = NULL;
 
+	g_return_if_fail(froms != NULL);
+
 	dialog = gtk_dialog_new_with_buttons(
              _("Export through XSLT"),
              NULL, 0,



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