From 6a00589bb6055e8bdabc32078bf9bc2833b245d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Wed, 4 Nov 2009 08:50:14 +0000 Subject: [PATCH] Exit sarg if undocumented -y option is specified on the command line to list the current language strings. --- language.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/language.c b/language.c index f0c8db7..8d95585 100644 --- a/language.c +++ b/language.c @@ -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; } -- 2.47.2