Code

python: Properly init the empty string with Python3.
authorSven Trenkel <collectd@semidefinite.de>
Mon, 12 Jan 2015 23:22:34 +0000 (23:22 +0000)
committerSven Trenkel <collectd@semidefinite.de>
Mon, 12 Jan 2015 23:22:34 +0000 (23:22 +0000)
src/python.c

index 928c921bbf6274db71efe69ff9874583e9f52c70..8bcf82c28d317961f0e0e73e973c27db158480dc 100644 (file)
@@ -1038,7 +1038,7 @@ static int cpy_init_python() {
        PyObject *module;
 
 #ifdef IS_PY3K
-       wchar_t *argv = {0};
+       wchar_t *argv = L"";
        /* Add a builtin module, before Py_Initialize */
        PyImport_AppendInittab("collectd", PyInit_collectd);
 #else