Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add patch for libmemcached-1.0

  • Loading branch information...
commit b521f1a9843963204d046f6bddf32a9034d65fd7 1 parent 581559f
@davies davies authored
Showing with 15 additions and 1 deletion.
  1. +14 −0 patches/1.0/empty_string.patch
  2. +1 −1  readme
View
14 patches/1.0/empty_string.patch
@@ -0,0 +1,14 @@
+--- libmemcached-1.0.8/libmemcached/string.cc 2012-05-13 07:52:47.000000000 +0800
++++ libmemcached-1.0.8-r1/libmemcached/string.cc 2012-05-30 11:23:10.000000000 +0800
+@@ -168,11 +168,6 @@
+
+ char *memcached_string_c_copy(memcached_string_st *string)
+ {
+- if (memcached_string_length(string) == 0)
+- {
+- return NULL;
+- }
+-
+ char *c_ptr= static_cast<char *>(libmemcached_malloc(string->root, (memcached_string_length(string)+1) * sizeof(char)));
+
+ if (c_ptr == NULL)
View
2  readme
@@ -1,2 +1,2 @@
-1.It needs libmemcached 0.40, patched with fail_over.patch, empty_string.patch, buffer_request.patch
+1.It needs libmemcached >=1.0.2 (touch support), patched with fail_over.patch, empty_string.patch, buffer_request.patch
2.If you use the python whose version is < 2.5, you should modify the Py_ssize_t definition.
Please sign in to comment.
Something went wrong with that request. Please try again.