From: Po Lu Date: Wed, 1 Jun 2022 05:05:42 +0000 (+0000) Subject: Fix creation of menu items without help text on Haiku X-Git-Tag: emacs-29.0.90~1910^2~295^2~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f610b4b509013a6c9ef448385575ade01733559c;p=emacs.git Fix creation of menu items without help text on Haiku * src/haiku_support.cc (EmacsMenuItem): Don't mistakenly assume help is non-NULL. --- diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 2411a7b539b..3b1a2cfcb38 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 ()