emacs/emacs-23.3-xgselect.patch
2012-05-24 11:54:18 +00:00

15 lines
424 B
Diff

--- src/xgselect.c
+++ src/xgselect.c 2012-05-24 11:07:45.793270370 +0000
@@ -60,6 +60,11 @@ xg_select (max_fds, rfds, wfds, efds, ti
xfree (gfds);
gfds = xmalloc (sizeof (*gfds) * gfds_size);
}
+ else if (!gfds)
+ {
+ gfds_size = 1;
+ gfds = xmalloc (sizeof (*gfds));
+ }
n_gfds = g_main_context_query (context,
G_PRIORITY_LOW,