[MPlayer-cvslog] r33568 - trunk/gui/cfg.c
ib
subversion at mplayerhq.hu
Mon Jun 6 17:11:24 CEST 2011
Author: ib
Date: Mon Jun 6 17:11:24 2011
New Revision: 33568
Log:
Check error when creating the GUI config object.
Modified:
trunk/gui/cfg.c
Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c Mon Jun 6 16:55:06 2011 (r33567)
+++ trunk/gui/cfg.c Mon Jun 6 17:11:24 2011 (r33568)
@@ -267,6 +267,12 @@ int cfg_read(void)
mp_msg(MSGT_GPLAYER, MSGL_V, "[cfg] reading config file: %s\n", cfg);
gui_conf = m_config_new();
+
+ if (!gui_conf) {
+ gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed);
+ guiExit(EXIT_ERROR);
+ }
+
m_config_register_options(gui_conf, gui_opts);
if (!disable_gui_conf && (m_config_parse_config_file(gui_conf, cfg) < 0)) {
More information about the MPlayer-cvslog
mailing list