diff options
Diffstat (limited to 'dev-python/pylibmc/files')
-rw-r--r-- | dev-python/pylibmc/files/pylibmc-1.6.1-fix-test-failures-r1.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/pylibmc/files/pylibmc-1.6.1-fix-test-failures-r1.patch b/dev-python/pylibmc/files/pylibmc-1.6.1-fix-test-failures-r1.patch new file mode 100644 index 000000000000..0a91fd39266e --- /dev/null +++ b/dev-python/pylibmc/files/pylibmc-1.6.1-fix-test-failures-r1.patch @@ -0,0 +1,16 @@ +diff --git a/src/_pylibmcmodule.c b/src/_pylibmcmodule.c +index 5324d1d..70c18cb 100644 +--- a/src/_pylibmcmodule.c ++++ b/src/_pylibmcmodule.c +@@ -600,6 +600,11 @@ static PyObject *_PylibMC_parse_memcached_value(PylibMC_Client *self, + } + #endif + ++ /* make sure we don't pass a null pointer to _PylibMC_deserialize_native */ ++ if (value == NULL) { ++ value = ""; ++ } ++ + if (self->native_deserialization) { + retval = _PylibMC_deserialize_native(self, NULL, value, size, flags); + } else { |