src/helpfile.c (language_read_list): If the language already exists, do
not allocate it anew.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-69
# arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
#
+2006-10-27 01:59:57 GMT Michael Poole <mdpoole@troilus.org> patch-69
+
+ Summary:
+ Don't re-allocated a language that already exists.
+ Revision:
+ srvx--devo--1.3--patch-69
+
+ src/helpfile.c (language_read_list): If the language already exists, do
+ not allocate it anew.
+
+ modified files:
+ ChangeLog src/helpfile.c
+
+
2006-10-27 01:25:18 GMT Michael Poole <mdpoole@troilus.org> patch-68
Summary:
log_module(MAIN_LOG, LOG_INFO, "Skipping language entry '%s' (not directory).", dirent->d_name);
continue;
}
- language_alloc(dirent->d_name);
+ if (!dict_find(languages, dirent->d_name, NULL))
+ language_alloc(dirent->d_name);
}
closedir(dir);
}