Fix ordering bug, progname() must be called before translate()

Signed-off-by: Wang He <xw897002528@gmail.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Wang He
2016-11-12 16:51:29 +01:00
committed by Joachim Nilsson
parent 2c7332583c
commit 86f02e8553
+1 -1
View File
@@ -122,9 +122,9 @@ int main(int argc, char *argv[])
};
/* Initial command taken from program name */
prognm = progname(argv[0]);
translate();
prognm = progname(argv[0]);
while ((c = getopt_long(argc, argv, "h?fHpr", long_options, NULL)) != EOF) {
switch(c) {
case 'h':