diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2004-08-30 20:14:21 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2004-08-30 20:14:21 +0000 |
commit | ec867797797c80ba00a29af18fb9c38f137a0a6b (patch) | |
tree | 005e3a290fe74eaa581d4731cd411cdbd50887fb /src/xmenu.c | |
parent | 2bf436c3bb916cc9368dafeb54d1cab0196e15cf (diff) | |
download | emacs-ec867797797c80ba00a29af18fb9c38f137a0a6b.tar.gz |
Don't call ENCODE_MENU_STRING on top level menu names, GC may occur.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r-- | src/xmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 2eed2b4987e..229f9c37de7 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -2056,7 +2056,7 @@ set_frame_menubar (f, first_time, deep_p) string = XVECTOR (items)->contents[i + 1]; if (NILP (string)) break; - wv->name = (char *) SDATA (ENCODE_MENU_STRING (string)); + wv->name = (char *) SDATA (string); update_submenu_strings (wv->contents); wv = wv->next; } @@ -2088,7 +2088,7 @@ set_frame_menubar (f, first_time, deep_p) break; wv = xmalloc_widget_value (); - wv->name = (char *) SDATA (ENCODE_MENU_STRING (string)); + wv->name = (char *) SDATA (string); wv->value = 0; wv->enabled = 1; wv->button_type = BUTTON_TYPE_NONE; |