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

[Cluster-devel] [PATCH 15/19] config: fix rng2ldif null reference



Spotted by Coverity Scan

Signed-off-by: Fabio M. Di Nitto <fdinitto redhat com>
---
:100644 100644 1de9181... 7a99417... M	config/tools/ldap/rng2ldif/value-list.c
 config/tools/ldap/rng2ldif/value-list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/config/tools/ldap/rng2ldif/value-list.c b/config/tools/ldap/rng2ldif/value-list.c
index 1de9181..7a99417 100644
--- a/config/tools/ldap/rng2ldif/value-list.c
+++ b/config/tools/ldap/rng2ldif/value-list.c
@@ -158,6 +158,7 @@ id_readfile(struct idinfo *oi, char *filename)
 		assert(v->name);
 
 		c = valp;
+		assert(c);
 
 		valp = strchr(c, ',');
 		v->value = 0;
-- 
1.7.4.4


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