aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2009-11-24 03:55:17 +0800
committergahr <gahr@FreeBSD.org>2009-11-24 03:55:17 +0800
commit8533986b0729a21f364b45fa9a8cdffa8a192912 (patch)
tree3bc4263618af039c886d9d78544207e47b2206ff /x11-toolkits
parentec05081c6fdd7e20d84979074c423df139ba76ab (diff)
downloadfreebsd-ports-gnome-8533986b0729a21f364b45fa9a8cdffa8a192912.tar.gz
freebsd-ports-gnome-8533986b0729a21f364b45fa9a8cdffa8a192912.tar.zst
freebsd-ports-gnome-8533986b0729a21f364b45fa9a8cdffa8a192912.zip
- Prevent ewl_config from segfaulting (patch coherent with upstreams RCS)
Approved by: stas (maintainer)
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/ewl/files/patch-tools-ewl_config_ewl_config.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/ewl/files/patch-tools-ewl_config_ewl_config.c b/x11-toolkits/ewl/files/patch-tools-ewl_config_ewl_config.c
new file mode 100644
index 000000000000..d01792e311de
--- /dev/null
+++ b/x11-toolkits/ewl/files/patch-tools-ewl_config_ewl_config.c
@@ -0,0 +1,22 @@
+--- tools/ewl_config/ewl_config.c.orig 2009-11-23 20:47:09.000000000 +0100
++++ tools/ewl_config/ewl_config.c 2009-11-23 20:47:42.000000000 +0100
+@@ -342,8 +342,8 @@
+ ret = ec_themes_get(rep, list, v);
+ if (ret >= 0)
+ sel = ret;
++ closedir(rep);
+ }
+- closedir(rep);
+
+ home_dir = getenv("HOME");
+ snprintf(path, PATH_MAX, "%s/%s", home_dir, ".ewl/themes");
+@@ -355,8 +355,8 @@
+ ret = ec_themes_get(rep, list, v);
+ if (ret >= 0)
+ sel = ret;
++ closedir(rep);
+ }
+- closedir(rep);
+
+ if (sel >= 0)
+ ewl_mvc_selected_set(EWL_MVC(o), NULL, list, sel, 0);