summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5198109)
raw | patch | inline | side by side (parent: 5198109)
author | Florian Forster <octo@noris.net> | |
Wed, 1 Jul 2009 12:56:17 +0000 (14:56 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 1 Jul 2009 12:56:17 +0000 (14:56 +0200) |
src/common.c | patch | blob | history |
diff --git a/src/common.c b/src/common.c
index 1af2f144647b191c38321ddd4aed4264b2c79577..95c3dce00e82b8da3e1dd1757b2919294d7fbde3 100644 (file)
--- a/src/common.c
+++ b/src/common.c
dummy = NULL;
if (i >= vl->values_len)
+ {
+ /* Make sure i is invalid. */
+ i = vl->values_len + 1;
break;
+ }
if (i == -1)
{