Fixed up a few more places where we set the error in the memcached root.
[m6w6/libmemcached] / libmemcached / hosts.cc
index 7527cfbd0cfef688b82533ba64015a215f9ce752..885a79b7e8c5ffd84f8e3567d1d5387d2d81821c 100644 (file)
@@ -345,7 +345,7 @@ memcached_return_t memcached_server_push(memcached_st *ptr, const memcached_serv
                                            list[x].port, list[x].weight, list[x].type);
     if (! instance)
     {
-      return memcached_set_error(ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, NULL);
+      return memcached_set_error(ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE);
     }
     ptr->number_of_hosts++;
   }