[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f610b4b509: Fix creation of menu items without help text on Haiku
From: |
Po Lu |
Subject: |
master f610b4b509: Fix creation of menu items without help text on Haiku |
Date: |
Wed, 1 Jun 2022 01:07:10 -0400 (EDT) |
branch: master
commit f610b4b509013a6c9ef448385575ade01733559c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix creation of menu items without help text on Haiku
* src/haiku_support.cc (EmacsMenuItem): Don't mistakenly assume
help is non-NULL.
---
src/haiku_support.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index 2411a7b539..3b1a2cfcb3 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -2403,7 +2403,8 @@ public:
if (key_label)
key = strdup (key_label);
- this->help = strdup (help);
+ if (help)
+ this->help = strdup (help);
}
~EmacsMenuItem ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f610b4b509: Fix creation of menu items without help text on Haiku,
Po Lu <=