From 06ef3831e71f0ee085b8b1419ee2f34829963941 Mon Sep 17 00:00:00 2001 From: ivo Date: Wed, 21 Feb 2007 19:48:12 +0000 Subject: [PATCH] fix compilation with gcc 2.95.3 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22305 b3059339-0415-0410-9bf9-f77b7e298cf2 --- command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index 743c778039..7b1e910811 100644 --- a/command.c +++ b/command.c @@ -1628,6 +1628,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd) case MP_CMD_GET_PROPERTY:{ m_option_t *prop; void *val; + char *tmp; prop = mp_property_find(cmd->args[0].v.s); if (!prop) { mp_msg(MSGT_CPLAYER, MSGL_WARN, @@ -1642,7 +1643,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd) cmd->args[0].v.s); break; } - char *tmp = m_option_print(prop, val); + tmp = m_option_print(prop, val); if (!tmp || tmp == (char *) -1) { mp_msg(MSGT_CPLAYER, MSGL_WARN, "Failed to print value of property '%s'.\n",