From 618902f7239e49abe5c4951e2b2f4e6120157086 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 27 May 2015 22:44:12 +0200 Subject: [PATCH] eliminate Visual C++ warning about pointless range check --- src/util/bsdstring.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util/bsdstring.c b/src/util/bsdstring.c index c43847da1..652608483 100644 --- a/src/util/bsdstring.c +++ b/src/util/bsdstring.c @@ -12,10 +12,6 @@ int wrptr(char **ptr, size_t * size, size_t bytes) if (bytes == 0) { return 0; } - if (bytes < 0) { - *size = 0; - return EINVAL; - } if (bytes <= *size) { *ptr += bytes; *size -= bytes;