Skip to content

Commit 8e98c16

Browse files
committed
common.h: fix InternFromString()
Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent 771345d commit 8e98c16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyalsa/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ static inline int get_utf8_string(PyObject *o, char **str)
119119
static inline PyObject *InternFromString(const char *name)
120120
{
121121
#if PY_MAJOR_VERSION < 3
122-
return PyString_InternFromString("register");
122+
return PyString_InternFromString(name);
123123
#else
124-
return PyUnicode_InternFromString("register");
124+
return PyUnicode_InternFromString(name);
125125
#endif
126126
}
127127

0 commit comments

Comments
 (0)