aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/memcached/memcached/redundant_comparison.patch
blob: ed86ffae4daf6aef93aa91743437542b8119b0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: memcached-1.4.33/items.c
===================================================================
--- memcached-1.4.33.orig/items.c
+++ memcached-1.4.33/items.c
@@ -148,7 +148,7 @@ item *do_item_alloc(char *key, const siz
     uint8_t nsuffix;
     item *it = NULL;
     char suffix[40];
-    if (nbytes < 2 || nkey < 0)
+    if (nbytes < 2)
         return 0;
 
     size_t ntotal = item_make_header(nkey + 1, flags, nbytes, suffix, &nsuffix);