Commit cf3e7bc4 authored by Mikael Magnusson's avatar Mikael Magnusson

libgimpconfig: unfix loop condition and fix if condition

The loop was right, but the following if was meant to check if
the token was terminated correctly so it needs to be *p.
parent 3ce761e3
......@@ -522,10 +522,10 @@ gimp_config_path_extract_token (const gchar **str)
p = *str + 2;
while (p && (*p != '}'))
while (*p && (*p != '}'))
p = g_utf8_next_char (p);
if (!p)
if (! *p)
return NULL;
token = g_strndup (*str + 2, g_utf8_pointer_to_offset (*str + 2, p));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment