aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--Makefile2
-rw-r--r--src/argparser.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5be5d95..9b59706 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-C_OPTIMISE = -O0
+C_OPTIMISE = -O6
JAVA_OPTIMISE = -O
all:
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);