pkgsrc/editors/emacs23/patches/patch-src_xgselect.c
2013-02-17 04:59:41 +00:00

16 lines
462 B
C

$NetBSD: patch-src_xgselect.c,v 1.1 2013/02/17 04:59:43 dholland Exp $
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10631
--- src/xgselect.c.orig 2012-01-11 12:35:01.000000000 +0000
+++ src/xgselect.c
@@ -55,6 +55,9 @@ xg_select (max_fds, rfds, wfds, efds, ti
do {
if (n_gfds > gfds_size)
{
+ if (gfds_size == 0)
+ xgselect_initialize ();
+
while (n_gfds > gfds_size)
gfds_size *= 2;
xfree (gfds);