summaryrefslogtreecommitdiffhomepage
path: root/src/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector.c')
-rw-r--r--src/vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c
index d5ca69e..e9ca586 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -180,7 +180,7 @@ vector_getentry(vector_t vector, size_t pos, size_t * size)
struct vectorentry_s *ptr;
size_t loc;
- if (!vector || pos < 0 || pos >= vector->num_entries)
+ if (!vector || pos >= vector->num_entries)
return NULL;
loc = 0;