aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-26 02:51:55 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-26 02:51:55 +0200
commit6add64e2dc8e5e1a7ce744ac22e66371d2c8463e (patch)
treee49c8dedc6b62d7018d75ac29698868ae008c1c7 /src
parentadd makefile, why cannot c version be optimised?? (diff)
downloadargparser-6add64e2dc8e5e1a7ce744ac22e66371d2c8463e.tar.gz
argparser-6add64e2dc8e5e1a7ce744ac22e66371d2c8463e.tar.bz2
argparser-6add64e2dc8e5e1a7ce744ac22e66371d2c8463e.tar.xz
missed to initialise variable
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/argparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argparser.c b/src/argparser.c
index bb1f3ce..4041869 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -181,7 +181,7 @@ extern void args_dispose()
if (args_opts.keys != null)
{
void** freethis = map_free(&args_opts);
- long i;
+ long i = 0;
while (*(freethis + i))
free(*(freethis + i++));
free(freethis);