[dia] [scan-build] Argument with 'nonnull' attribute passed null
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Argument with 'nonnull' attribute passed null
- Date: Sun, 6 Dec 2009 19:02:50 +0000 (UTC)
commit 90b7b5894d5018d5c4b1f0c260892717e1deb020
Author: Hans Breuer <hans breuer org>
Date: Sun Dec 6 16:11:16 2009 +0100
[scan-build] Argument with 'nonnull' attribute passed null
objects/SISSI/sissi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/objects/SISSI/sissi.c b/objects/SISSI/sissi.c
index 8c24017..50ddbf1 100644
--- a/objects/SISSI/sissi.c
+++ b/objects/SISSI/sissi.c
@@ -558,8 +558,8 @@ property_other_read(DataNode composite)
if (attr_node != NULL)
properties_others->description = data_string( attribute_first_data(attr_node) );
- if (!strcmp(properties_others->description,""))
- properties_others->description=NULL;
+ if (properties_others->description!=NULL && !strcmp(properties_others->description,""))
+ properties_others->description=NULL;
return properties_others;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]