[dia] [scan-build] Null dereference (not really)
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Null dereference (not really)
- Date: Sun, 13 Dec 2009 19:12:23 +0000 (UTC)
commit 958d2fcfbe6a5b54fdaf65c8db15236fcdba203a
Author: Hans Breuer <hans breuer org>
Date: Sun Dec 13 14:16:02 2009 +0100
[scan-build] Null dereference (not really)
Document create_dialog() making a valid dialog
pointer by g_assert() to silence scan-build.
app/defaults.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/defaults.c b/app/defaults.c
index a3a2e07..d01f171 100644
--- a/app/defaults.c
+++ b/app/defaults.c
@@ -119,6 +119,7 @@ defaults_show(DiaObjectType *objtype, gpointer user_data)
if (dialog == NULL)
create_dialog();
+ g_assert(dialog != NULL); /* valid by create_dialog() */
if ((objtype==NULL) || (defaults == NULL)) {
/* No defaults or no object */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]