summaryrefslogtreecommitdiffstats
path: root/common/sys
diff options
context:
space:
mode:
Diffstat (limited to 'common/sys')
-rw-r--r--common/sys/vector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/sys/vector.c b/common/sys/vector.c
index fc99bdc8..af39b410 100644
--- a/common/sys/vector.c
+++ b/common/sys/vector.c
@@ -173,7 +173,7 @@ Vector_search(const struct Vector *self, const char *name)
int i;
for (i=0; i<self->length; i++)
if (strcasecmp(self->base + self->size * i, name) == 0)
- return 1;
- return 0;
+ return i;
+ return -1;
}