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 928c921..8bcf82c 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