b2180cbaf8
emacs-23.4 to emacs23-23.4.
16 lines
462 B
C
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);
|