[Mplayer-cvslog] CVS: main m_option.c,1.12,1.13
Alban Bedel CVS
albeu at mplayerhq.hu
Tue Jul 1 11:27:15 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv2001
Modified Files:
m_option.c
Log Message:
Fix the segfault in case of missing arg for flag options
in config files.
Index: m_option.c
===================================================================
RCS file: /cvsroot/mplayer/main/m_option.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- m_option.c 1 Jun 2003 22:16:41 -0000 1.12
+++ m_option.c 1 Jul 2003 09:26:49 -0000 1.13
@@ -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") ||
More information about the MPlayer-cvslog
mailing list