Fixed up a few more places where we set the error in the memcached root.
[m6w6/libmemcached] / libmemcached / prefix_key.cc
index 526f5fac30796c3f437914041899fdb8dc1a3c59..6bfc8374948944b88109e5174fb7e745843b2e9d 100644 (file)
@@ -42,16 +42,16 @@ memcached_return_t memcached_set_prefix_key(memcached_st *self, const char *key,
   if (key && key_length)
   {
     if (memcached_key_test((const char **)&key, &key_length, 1) == MEMCACHED_BAD_KEY_PROVIDED)
-      return memcached_set_error(self, MEMCACHED_BAD_KEY_PROVIDED, NULL);
+      return memcached_set_error(self, MEMCACHED_BAD_KEY_PROVIDED);
 
     if ((key_length > MEMCACHED_PREFIX_KEY_MAX_SIZE -1))
-      return memcached_set_error(self, MEMCACHED_KEY_TOO_BIG, NULL);
+      return memcached_set_error(self, MEMCACHED_KEY_TOO_BIG);
 
     memcached_array_free(self->prefix_key);
     self->prefix_key= memcached_strcpy(self, key, key_length);
 
     if (! self->prefix_key)
-      return memcached_set_error(self, MEMCACHED_MEMORY_ALLOCATION_FAILURE, NULL);
+      return memcached_set_error(self, MEMCACHED_MEMORY_ALLOCATION_FAILURE);
   }
   else
   {