Commit e578f4c3 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent fdc31ec7
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);
......
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