From a10ece2161bdf54e244568661eff283bba95fb5a Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Thu, 23 Dec 2010 23:01:45 -0500 Subject: Coverity issue 10034 The 'len' varible was not initialized properly. The ref_array_get function does not return error so the error check is removed. --- ini/ini_valueobj.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ini/ini_valueobj.c b/ini/ini_valueobj.c index 321cc2c..b1d3fa0 100644 --- a/ini/ini_valueobj.c +++ b/ini/ini_valueobj.c @@ -1017,11 +1017,8 @@ extern void ref_array_debug(struct ref_array *ra, int num); if (ptr) { /* Get its length */ + len = 0; ref_array_get(vo->raw_lengths, i, (void *)&len); - if (error) { - TRACE_ERROR_NUMBER("Failed to add string", error); - return error; - } part = *((char **)(ptr)); -- cgit