From 45e37e471b267e2ba343f95fa2be41272b53aeaa Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Fri, 27 Oct 2006 01:59:57 +0000 Subject: [PATCH] Don't re-allocated a language that already exists. 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 --- ChangeLog | 14 ++++++++++++++ src/helpfile.c | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6901ec0..d064d0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-10-27 01:59:57 GMT Michael Poole 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 patch-68 Summary: diff --git a/src/helpfile.c b/src/helpfile.c index c9e1e65..532bcb8 100644 --- a/src/helpfile.c +++ b/src/helpfile.c @@ -246,7 +246,8 @@ static void language_read_list(void) 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); } -- 2.20.1