diff options
Diffstat (limited to 'source3/python/py_conv.c')
-rw-r--r-- | source3/python/py_conv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/python/py_conv.c b/source3/python/py_conv.c index 966a892528..04b4194824 100644 --- a/source3/python/py_conv.c +++ b/source3/python/py_conv.c @@ -42,12 +42,12 @@ PyObject *from_struct(void *s, struct pyconv *conv) switch (conv[i].type) { case PY_UNISTR: { UNISTR *u = (UNISTR *)((char *)s + conv[i].offset); - fstring str = ""; + fstring s = ""; if (u->buffer) fstr_pull(s, u); - item = PyString_FromString(str); + item = PyString_FromString(s); PyDict_SetItemString(obj, conv[i].name, item); break; @@ -122,13 +122,13 @@ BOOL to_struct(void *s, PyObject *dict, struct pyconv *conv) switch (conv[i].type) { case PY_UNISTR: { UNISTR *u = (UNISTR *)((char *)s + conv[i].offset); - char *str = ""; + char *s = ""; if (!PyString_Check(obj)) goto done; - str = PyString_AsString(obj); - init_unistr(u, str); + s = PyString_AsString(obj); + init_unistr(u, s); break; } |