changeset 20596:7d072354544a

Fix #3249 (Bus error using finch on mac os x). Make sure we don't crash if there's no default SIGWINCH handler.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 21 Sep 2007 16:09:12 +0000
parents 61152dbb504b
children 591267f6f1d5 fea57fd50a50 54ff514fdd04 964014aee978
files finch/libgnt/gntmain.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntmain.c	Fri Sep 21 13:39:48 2007 +0000
+++ b/finch/libgnt/gntmain.c	Fri Sep 21 16:09:12 2007 +0000
@@ -409,7 +409,8 @@
 	case SIGWINCH:
 		erase();
 		g_idle_add(refresh_screen, NULL);
-		org_winch_handler(sig);
+		if (org_winch_handler)
+			org_winch_handler(sig);
 		signal(SIGWINCH, sighandler);
 		break;
 #endif