Kaydet (Commit) b6c31ee9 authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

fallback to english

üst c094d0e0
...@@ -39,7 +39,7 @@ static PyObject * ...@@ -39,7 +39,7 @@ static PyObject *
c_i18n(PyObject *self, PyObject *args) c_i18n(PyObject *self, PyObject *args)
{ {
PyObject *dict; PyObject *dict;
PyObject *ret; PyObject *ret = NULL;
if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict)) if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
return NULL; return NULL;
...@@ -47,7 +47,7 @@ c_i18n(PyObject *self, PyObject *args) ...@@ -47,7 +47,7 @@ c_i18n(PyObject *self, PyObject *args)
if (my_proc.locale) { if (my_proc.locale) {
ret = PyDict_GetItemString(dict, my_proc.locale); ret = PyDict_GetItemString(dict, my_proc.locale);
} }
else { if (!ret) {
ret = PyDict_GetItemString(dict, "en"); ret = PyDict_GetItemString(dict, "en");
} }
Py_INCREF(ret); Py_INCREF(ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment