mirror of https://github.com/GNOME/gimp.git
reverted list handling for unknown_tokens to the code used in 1.2 which
2001-11-29 Sven Neumann <sven@gimp.org> * app/gimprc.c (save_gimprc_strings): reverted list handling for unknown_tokens to the code used in 1.2 which has the advantage that it doesn't crash.
This commit is contained in:
parent
fdc31ec7d0
commit
e578f4c3e8
|
@ -1,3 +1,9 @@
|
|||
2001-11-29 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gimprc.c (save_gimprc_strings): reverted list handling for
|
||||
unknown_tokens to the code used in 1.2 which has the advantage that
|
||||
it doesn't crash.
|
||||
|
||||
2001-11-29 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* m4macros/gimp-1.4.m4: use gimptool-1.3.
|
||||
|
|
|
@ -690,9 +690,11 @@ save_gimprc_strings (const gchar *token,
|
|||
ut->token = g_strdup (token);
|
||||
ut->value = g_strdup (value);
|
||||
|
||||
for (list = unknown_tokens; list; list = g_list_next (list))
|
||||
list = unknown_tokens;
|
||||
while (list)
|
||||
{
|
||||
tmp = (UnknownToken *) list->data;
|
||||
list = list->next;
|
||||
|
||||
if (strcmp (tmp->token, ut->token) == 0)
|
||||
{
|
||||
|
@ -702,7 +704,6 @@ save_gimprc_strings (const gchar *token,
|
|||
g_free (tmp);
|
||||
}
|
||||
}
|
||||
|
||||
unknown_tokens = g_list_append (unknown_tokens, ut);
|
||||
|
||||
fclose (fp_new);
|
||||
|
|
Loading…
Reference in New Issue