1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/x11-wm/fluxbox-devel/files/patch-fix_iconvmenu_crash
Jeremy Messenger 30fc425b56 Fix the crash at the startup, bump the PORTREVISION.
Reported by:	Scott Robbins <scottro@nyc.rr.com>,
		Tim <tim@timtravis.com>
Bugs tracker:	http://tinyurl.com/hjhnt (sourceforge.net, included a patch)
Patch by:	Simon Bowden (Fluxbox developer)
2006-07-05 02:17:03 +00:00

14 lines
494 B
Plaintext

diff -I'^// \$Id' -Naur --exclude-from diff-exclude trunk.orig/src/FbTk/FbString.cc trunk.tabs/src/FbTk/FbString.cc
--- src/FbTk/FbString.cc 2006-06-26 20:55:59.000000000 +1000
+++ src/FbTk/FbString.cc 2006-07-05 09:37:16.000000000 +1000
@@ -261,7 +261,8 @@
if (newiconv == ((iconv_t)(-1)))
return false;
else {
- iconv_close(m_iconv);
+ if (m_iconv != ((iconv_t)-1))
+ iconv_close(m_iconv);
m_iconv = newiconv;
return true;
}