aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-05-12 12:01:07 +0100
committerJon Masters <jcm@jonmasters.org>2009-05-19 04:52:54 -0400
commit8accb5a76ff4062a1b40b69625e91b3b1603bc93 (patch)
treeb3d1a2c247d2d1387441086c1dc131d4aee3724a
parent869fc9c1573ae321ae1cb2923ee0b98a1d4021dc (diff)
downloadmodule-init-tools-8accb5a76ff4062a1b40b69625e91b3b1603bc93.tar.gz
depmod: fix uninitialized value error in "depmod --warn" code
==12690== Conditional jump or move depends on uninitialised value(s) ==12690== at 0x804A095: output_deps_bin (depmod.c:473) ==12690== by 0x804CD85: main (depmod.c:1364) ==12690== Uninitialised value was created by a stack allocation ==12690== at 0x80517D3: add_value (index.c:86) Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> Signed-off-by: Jon Masters <jcm@jonmasters.org>
-rw-r--r--index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.c b/index.c
index dbf9d31..d656c0f 100644
--- a/index.c
+++ b/index.c
@@ -85,7 +85,7 @@ static int add_value(struct index_value **values,
const char *value, unsigned int priority)
{
struct index_value *v;
- int duplicate;
+ int duplicate = 0;
int len;
/* report the presence of duplicate values */