emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ad0b9b9ab5d 1/2: ; * src/unexelf.c (unexec): Fix compiler warning


From: Po Lu
Subject: master ad0b9b9ab5d 1/2: ; * src/unexelf.c (unexec): Fix compiler warning.
Date: Thu, 23 May 2024 03:20:18 -0400 (EDT)

branch: master
commit ad0b9b9ab5dc58ee4e6277b642b325970c63a4f7
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    ; * src/unexelf.c (unexec): Fix compiler warning.
---
 src/unexelf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/unexelf.c b/src/unexelf.c
index feb26ffaeaf..a9a8f2d6ce9 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]