summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/multiarray/ucsnarrow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/ucsnarrow.c b/numpy/core/src/multiarray/ucsnarrow.c
index 9400ea0e9..4371c3bc0 100644
--- a/numpy/core/src/multiarray/ucsnarrow.c
+++ b/numpy/core/src/multiarray/ucsnarrow.c
@@ -102,6 +102,9 @@ MyPyUnicode_New(int length)
unicode->length = length;
unicode->hash = -1;
unicode->defenc = NULL;
+#if defined(NPY_PY3K)
+ unicode->state = 0; /* Not interned */
+#endif
return (PyObject *)unicode;
}