[ccan] [PATCH 02/10] ciniparser: remove dead store

Brad Hards bradh at frogmouth.net
Tue Mar 8 20:28:05 EST 2011


last is unconditionally set to zero later in this function.
---
 ccan/ciniparser/ciniparser.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/ccan/ciniparser/ciniparser.c b/ccan/ciniparser/ciniparser.c
index 5e27a25..a921409 100644
--- a/ccan/ciniparser/ciniparser.c
+++ b/ccan/ciniparser/ciniparser.c
@@ -428,8 +428,6 @@ dictionary *ciniparser_load(const char *ininame)
 			/* Multi-line value */
 			last = len;
 			continue;
-		} else {
-			last = 0;
 		}
 
 		switch (ciniparser_line(line, section, key, val)) {
-- 
1.7.1



More information about the ccan mailing list