]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Exit sarg if undocumented -y option is specified on the command line to list the...
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 4 Nov 2009 08:50:14 +0000 (08:50 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 4 Nov 2009 08:50:14 +0000 (08:50 +0000)
language.c

index f0c8db79a38338b6eacf2c7cb0469e349c17f8ab..8d9558522c1bbc49fdaa759167c37b841062e5e2 100644 (file)
@@ -60,5 +60,13 @@ void language_load(const char *language)
 
    fclose(fp_text);
 
+   if(langcode) {
+      /*
+      The listing of the language strings is only used when adding new string so there is
+      no need to let sarg run any further than this point.
+      */
+      exit(0);
+   }
+
    return;
 }