Fixes a crash in the Python plugin.

PR:		ports/79201
Submitted by:	myself
Approved by:	adamw (mentor)
This commit is contained in:
Jean-Yves Lefort 2005-04-13 21:12:40 +00:00
parent 328d7e4f54
commit 0fb1b18f7c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133269
2 changed files with 19 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= streamtuner
PORTVERSION= 0.99.99
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio www
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,18 @@
--- 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__");