Fixes a crash in the Python plugin.
PR: ports/79201 Submitted by: myself Approved by: adamw (mentor)
This commit is contained in:
parent
328d7e4f54
commit
0fb1b18f7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133269
@ -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}
|
||||
|
18
audio/streamtuner/files/patch-src_plugins_python_pst-main.c
Normal file
18
audio/streamtuner/files/patch-src_plugins_python_pst-main.c
Normal 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__");
|
Loading…
Reference in New Issue
Block a user