changeset 8893:268b3fbc35b7

cosmetics
author arpi
date Sat, 11 Jan 2003 17:01:23 +0000
parents 06843e67a04b
children e6a83b140b39
files parser-mecmd.c
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/parser-mecmd.c	Sat Jan 11 16:42:24 2003 +0000
+++ b/parser-mecmd.c	Sat Jan 11 17:01:23 2003 +0000
@@ -119,9 +119,13 @@
 	    break;
 	  }
 	}
-	if(!entry || (mp_opt->flags & M_OPT_GLOBAL))
+	if(!entry || (mp_opt->flags & M_OPT_GLOBAL)){
 	  tmp = m_config_set_option(config, opt, argv[i + 1]);
-	else {
+	  if(tmp < 0){
+//	    mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp);
+	    goto err_out;
+	  }
+	} else {
 	  tmp = m_config_check_option(config, opt, argv[i + 1]);
 	  if(tmp >= 0) {
 	    entry->opts = realloc(entry->opts,(no+2)*2*sizeof(char*));
@@ -129,10 +133,11 @@
 	    entry->opts[2*no+1] = argv[i + 1] ? strdup(argv[i + 1]) : NULL;
 	    entry->opts[2*no+2] =  entry->opts[2*no+3] = NULL;
 	    no++;
+	  } else {
+//	    mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp);
+	    goto err_out;
 	  }
 	}
-	if (tmp < 0)
-	  goto err_out;
 	i += tmp;
       } else /* filename */
 	add_file(argv[i]);