]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix creation of menu items without help text on Haiku
authorPo Lu <luangruo@yahoo.com>
Wed, 1 Jun 2022 05:05:42 +0000 (05:05 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 1 Jun 2022 05:06:14 +0000 (05:06 +0000)
* src/haiku_support.cc (EmacsMenuItem): Don't mistakenly assume
help is non-NULL.

src/haiku_support.cc

index 2411a7b539bd4458e111107b22c8b39dff1a7c67..3b1a2cfcb38373a1dcd831bcd2c03fd989bb7fce 100644 (file)
@@ -2403,7 +2403,8 @@ public:
     if (key_label)
       key = strdup (key_label);
 
-    this->help = strdup (help);
+    if (help)
+      this->help = strdup (help);
   }
 
   ~EmacsMenuItem ()