mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-22 09:27:32 -08:00
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
17 lines
516 B
Diff
17 lines
516 B
Diff
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 {
|