mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Speculative fix for crash with untranslated messages
without | in them (#4521). git-svn-id: svn://localhost/ardour2/branches/3.0@10838 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d5dc50a407
commit
01acbbea80
1 changed files with 4 additions and 1 deletions
|
|
@ -336,7 +336,10 @@ sgettext (const char* domain_name, const char* msgid)
|
|||
{
|
||||
const char * msgval = dgettext (domain_name, msgid);
|
||||
if (msgval == msgid) {
|
||||
msgval = strrchr (msgid, '|') + 1;
|
||||
const char * p = strrchr (msgid, '|');
|
||||
if (p) {
|
||||
msgval = p + 1;
|
||||
}
|
||||
}
|
||||
return msgval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue