changeset 37071:c16af0693c42

Rewrite add_vf(). Use memset() in order to clear vf_settings[i + 1] completely.
author ib
date Thu, 24 Apr 2014 12:44:33 +0000
parents 393b5e0d5f28
children 9ed2c7f5c941
files gui/interface.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Thu Apr 24 12:39:37 2014 +0000
+++ b/gui/interface.c	Thu Apr 24 12:44:33 2014 +0000
@@ -296,7 +296,7 @@
             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));