]> git.pld-linux.org Git - packages/mlt.git/blame - 02-crash-empty-ladspa-path.diff
- rel 4; tiny fixes from debian
[packages/mlt.git] / 02-crash-empty-ladspa-path.diff
CommitLineData
4917f665
AM
1# Upstream patch to fix crash if LADSPA_PATH is empty.
2# Closes: #726197
3
4diff -Naur mlt-0.9.0.orig/src/modules/jackrack/plugin_mgr.c mlt-0.9.0/src/modules/jackrack/plugin_mgr.c
5--- mlt-0.9.0.orig/src/modules/jackrack/plugin_mgr.c 2013-06-03 05:34:35.000000000 +0200
6+++ mlt-0.9.0/src/modules/jackrack/plugin_mgr.c 2013-10-17 14:49:57.147889337 +0200
7@@ -237,10 +237,8 @@
8 ladspa_path = g_strdup ("/usr/local/lib/ladspa:/usr/lib/ladspa:/usr/lib64/ladspa");
9 #endif
10
11- dir = strtok (ladspa_path, ":");
12- do
13+ for (dir = strtok (ladspa_path, ":"); dir; dir = strtok (NULL, ":"))
14 plugin_mgr_get_dir_plugins (plugin_mgr, dir);
15- while ((dir = strtok (NULL, ":")));
16
17 g_free (ladspa_path);
18 }
This page took 0.039269 seconds and 4 git commands to generate.