gtkmain: walk GTK_LOCALEDIR through a pointer, not the literal
This commit is contained in:
parent
92ae960572
commit
9efadc7e36
1 changed files with 2 additions and 1 deletions
|
|
@ -124,13 +124,14 @@ _gtk_get_localedir (void)
|
|||
static char *gtk_localedir = NULL;
|
||||
if (gtk_localedir == NULL)
|
||||
{
|
||||
const gchar *localedir = GTK_LOCALEDIR;
|
||||
const gchar *p;
|
||||
gchar *root, *temp;
|
||||
|
||||
/* GTK_LOCALEDIR ends in either /lib/locale or
|
||||
* /share/locale. Scan for that slash.
|
||||
*/
|
||||
p = GTK_LOCALEDIR + strlen (GTK_LOCALEDIR);
|
||||
p = localedir + strlen (localedir);
|
||||
while (*--p != '/')
|
||||
;
|
||||
while (*--p != '/')
|
||||
|
|
|
|||
Loading…
Reference in a new issue