summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--m_option.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/m_option.c b/m_option.c
index 467adb7d33..7c532a3682 100644
--- a/m_option.c
+++ b/m_option.c
@@ -75,6 +75,7 @@ static char* dup_printf(const char *fmt, ...) {
static int parse_flag(m_option_t* opt,char *name, char *param, void* dst, int src) {
if (src == M_CONFIG_FILE) {
+ if(!param) return M_OPT_MISSING_PARAM;
if (!strcasecmp(param, "yes") || /* any other language? */
!strcasecmp(param, "on") ||
!strcasecmp(param, "ja") ||