]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix pdumper build
authorPo Lu <luangruo@yahoo.com>
Thu, 1 Dec 2022 06:43:44 +0000 (14:43 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 1 Dec 2022 06:43:44 +0000 (14:43 +0800)
* src/xselect.c (mark_xselect): Don't mark if
outstanding_transfers.next is still NULL.

src/xselect.c

index c635f840654653e80c94156e9f304561fa13181c..c23cda1f66e52c6a14c38883c03b33cc084bfdb4 100644 (file)
@@ -3415,6 +3415,11 @@ mark_xselect (void)
      request stack or the list of outstanding transfers.  */
 
   next = outstanding_transfers.next;
+
+  if (!next)
+    /* syms_of_xselect has not yet been called.  */
+    return;
+
   while (next != &outstanding_transfers)
     {
       mark_object (next->data.string);