changeset 34171:cca4f430b0f4

Pass on errors from CONF_TYPE_FUNC_PARAM_IMMEDIATE function.
author reimar
date Tue, 25 Oct 2011 20:42:50 +0000
parents a05c274e1409
children 5761a9a31bcb
files m_option.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m_option.c	Tue Oct 25 20:38:09 2011 +0000
+++ b/m_option.c	Tue Oct 25 20:42:50 2011 +0000
@@ -716,7 +716,9 @@
 ///////////////////  Func based options
 
 static int parse_call_func(const m_option_t* opt,const char *name, const char *param, void* dst, int src) {
-  ((m_opt_func_param_t) opt->p)(opt,param);
+  int res = ((m_opt_func_param_t) opt->p)(opt,param);
+  if (res < 0)
+    return res;
   return 1;
 }