Don't re-allocated a language that already exists.
authorMichael Poole <mdpoole@troilus.org>
Fri, 27 Oct 2006 01:59:57 +0000 (01:59 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 27 Oct 2006 01:59:57 +0000 (01:59 +0000)
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
src/helpfile.c

index 6901ec058da069c1155539c488f5ea6458c4c041..d064d0a92d092d511b377d3c58c6734899106813 100644 (file)
--- 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 <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:
index c9e1e657cf96da89ea8de61dac7a274464e4328b..532bcb8577c72dc145ec7459b537e527b71adfbe 100644 (file)
@@ -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);
 }