freebsd-ports/multimedia/gxmms/files/patch-src-xmmsctrl.c
Martin Wilke 92afdc5c66 - Fix build
PR:		123057
Submitted by:	Ganael Laplanche <ganael.laplanche@martymac.com>
Approved by:	maintainer
2008-04-28 17:20:25 +00:00

22 lines
618 B
C

--- src/xmmsctrl.c.orig 2004-09-03 00:19:54.000000000 +0200
+++ src/xmmsctrl.c 2008-04-24 15:36:57.000000000 +0200
@@ -45,16 +45,17 @@
xmms_start(XMMSData *xmms)
{
static gchar *exec_cmd = "xmms";
- static gchar *msg_error = _("Sorry, unable to launch XMMS.");
+ gchar *msg_error = _("Sorry, unable to launch XMMS.");
gint timer;
time_t lt;
+ gchar *exec_this;
if (xmms_remote_is_running(xmms->session))
{
return;
}
- gchar *exec_this = g_strdup_printf("%s &", exec_cmd);
+ exec_this = g_strdup_printf("%s &", exec_cmd);
if (system(exec_this))
{