changeset 22287:53f0cbf238cf

fix compilation with gcc 2.95.3
author ivo
date Wed, 21 Feb 2007 19:48:12 +0000
parents a7e5b99ac083
children da8ba4c0fc57
files command.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/command.c	Wed Feb 21 19:14:49 2007 +0000
+++ b/command.c	Wed Feb 21 19:48:12 2007 +0000
@@ -1628,6 +1628,7 @@
 	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 @@
 			   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",