# HG changeset patch # User albeu # Date 1057051609 0 # Node ID b39a943c902f44182bfeabdf230a5e37065ef73c # Parent 18ad3cda99d4ea68949c2146607aea767c906bf5 Fix the segfault in case of missing arg for flag options in config files. diff -r 18ad3cda99d4 -r b39a943c902f m_option.c --- a/m_option.c Tue Jul 01 08:49:14 2003 +0000 +++ b/m_option.c Tue Jul 01 09:26:49 2003 +0000 @@ -75,6 +75,7 @@ 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") ||