diff --git a/VERSION b/VERSION index d905db71..08826912 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-198-g0605b7df8c+1 \ No newline at end of file +a12-199-ga29639fceb+1 \ No newline at end of file diff --git a/common/src/option.c b/common/src/option.c index c1a096f3..baf5edb3 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -684,7 +684,10 @@ int option_get_int(const char * module, const char * name) { struct Option * o = option_get(module, name); if (!o) + { + DEBUG_ERROR("BUG: Failed to get the value for option %s:%s", module, name); return -1; + } assert(o->type == OPTION_TYPE_INT); return o->value.x_int; } @@ -693,7 +696,10 @@ const char * option_get_string(const char * module, const char * name) { struct Option * o = option_get(module, name); if (!o) + { + DEBUG_ERROR("BUG: Failed to get the value for option %s:%s", module, name); return NULL; + } assert(o->type == OPTION_TYPE_STRING); return o->value.x_string; } @@ -702,7 +708,10 @@ bool option_get_bool(const char * module, const char * name) { struct Option * o = option_get(module, name); if (!o) + { + DEBUG_ERROR("BUG: Failed to get the value for option %s:%s", module, name); return false; + } assert(o->type == OPTION_TYPE_BOOL); return o->value.x_bool; } \ No newline at end of file