diff options
Diffstat (limited to 'apps/filetree.c')
| -rw-r--r-- | apps/filetree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index e8fb459..cac2c79 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -104,7 +104,7 @@ bool ft_play_playlist(char* pathname, char* dirname, char* filename) if (global_settings.warnon_erase_dynplaylist && playlist_modified(NULL)) { - char *lines[] = {ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; + const char *lines[] = {ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; struct text_message message = {lines, 1}; if (gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES) @@ -408,8 +408,8 @@ int ft_enter(struct tree_context* c) !global_settings.party_mode && playlist_modified(NULL)) { - char *lines[]={ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; - struct text_message message={lines, 1}; + static const char *lines[]={ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; + static const struct text_message message={lines, 1}; if(gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES) break; |