diff options
Diffstat (limited to '')
-rw-r--r-- | src/vector.c | 2 |
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; |