Fri, 21 Sep 2007 16:09:12 +0000
Fix #3249 (Bus error using finch on mac os x). Make sure we don't crash if there's no default SIGWINCH handler.
| finch/libgnt/gntmain.c | file | annotate | diff | comparison | revisions |
--- 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