freebsd-ports/audio/streamtuner/files/patch-src_plugins_python_pst-main.c
Jean-Yves Lefort 0fb1b18f7c Fixes a crash in the Python plugin.
PR:		ports/79201
Submitted by:	myself
Approved by:	adamw (mentor)
2005-04-13 21:12:40 +00:00

18 lines
437 B
C

--- src/plugins/python/pst-main.c.orig Thu Mar 24 15:52:58 2005
+++ src/plugins/python/pst-main.c Thu Mar 24 15:53:59 2005
@@ -94,6 +94,7 @@
{
gboolean status = FALSE;
PyObject *module;
+ char *argv[] = { "" };
if (! check_api_version(err))
return FALSE;
@@ -109,6 +110,7 @@
}
Py_Initialize();
+ PySys_SetArgv(G_N_ELEMENTS(argv), argv);
PyEval_InitThreads();
module = PyImport_AddModule("__main__");