]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/unexelf.c (unexec): Fix compiler warning.
authorPo Lu <luangruo@yahoo.com>
Thu, 23 May 2024 05:54:48 +0000 (13:54 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 08:30:19 +0000 (10:30 +0200)
(cherry picked from commit ad0b9b9ab5dc58ee4e6277b642b325970c63a4f7)

src/unexelf.c

index feb26ffaeafc56514a7eaf3c6bcf2ea542277008..a9a8f2d6ce916e8e96588cca693b6a40abaf015b 100644 (file)
@@ -306,6 +306,8 @@ unexec (const char *new_name, const char *old_name)
        old_bss_seg = seg;
     }
   eassume (old_bss_seg);
+  if (!old_bss_seg)
+    emacs_abort ();
 
   /* Note that old_bss_addr may be lower than the first bss section
      address, since the section may need aligning.  */