[MPlayer-cvslog] r37167 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Thu Apr 24 14:44:33 CEST 2014
Author: ib
Date: Thu Apr 24 14:44:33 2014
New Revision: 37167
Log:
Rewrite add_vf().
Use memset() in order to clear vf_settings[i + 1] completely.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Thu Apr 24 14:39:37 2014 (r37166)
+++ trunk/gui/interface.c Thu Apr 24 14:44:33 2014 (r37167)
@@ -296,7 +296,7 @@ static void add_vf(const char *vf)
vf_settings = settings;
vf_settings[i].name = strdup(vf);
vf_settings[i].attribs = NULL;
- vf_settings[i + 1].name = NULL;
+ memset(&vf_settings[i + 1], 0, sizeof(m_obj_settings_t));
}
} else {
vf_settings = malloc(2 * sizeof(m_obj_settings_t));
More information about the MPlayer-cvslog
mailing list