Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Cluster Development (http://www.linux-archive.org/cluster-development/)
-   -   config: fix rng2ldif null reference (http://www.linux-archive.org/cluster-development/591085-config-fix-rng2ldif-null-reference.html)

"Fabio M. Di Nitto" 10-25-2011 12:09 PM

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


All times are GMT. The time now is 03:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.