[SCM] calf/master: Fix another bug - missing check for NULLness of the blob list.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:40:24 UTC 2013


The following commit has been merged in the master branch:
commit f1467f01d104dca45eeaa7735d7b51aad447f774
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Fri Sep 24 20:24:53 2010 +0100

    Fix another bug - missing check for NULLness of the blob list.

diff --git a/src/giface.cpp b/src/giface.cpp
index 3c22cb3..d661588 100644
--- a/src/giface.cpp
+++ b/src/giface.cpp
@@ -194,8 +194,11 @@ void calf_plugins::plugin_ctl_iface::clear_preset() {
         set_param_value(i, pp.def_value);
     }
     const char *const *vars = get_metadata_iface()->get_configure_vars();
-    for (int i = 0; vars[i]; i++)
-        configure(vars[i], NULL);
+    if (vars)
+    {
+        for (int i = 0; vars[i]; i++)
+            configure(vars[i], NULL);
+    }
 }
 
 const char *calf_plugins::load_gui_xml(const std::string &plugin_id)

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list