From: Frédéric Marchal Date: Wed, 4 Nov 2009 08:50:14 +0000 (+0000) Subject: Exit sarg if undocumented -y option is specified on the command line to list the... X-Git-Tag: v2_2_6~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a00589bb6055e8bdabc32078bf9bc2833b245d3;p=thirdparty%2Fsarg.git Exit sarg if undocumented -y option is specified on the command line to list the current language strings. --- 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; }