mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
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:
1 parent
2c7332583c
commit
86f02e8553
1 file changed
+1
-1
@@ -122,9 +122,9 @@ int main(int argc, char *argv[])
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Initial command taken from program name */
|
/* Initial command taken from program name */
|
||||||
|
prognm = progname(argv[0]);
|
||||||
translate();
|
translate();
|
||||||
|
|
||||||
prognm = progname(argv[0]);
|
|
||||||
while ((c = getopt_long(argc, argv, "h?fHpr", long_options, NULL)) != EOF) {
|
while ((c = getopt_long(argc, argv, "h?fHpr", long_options, NULL)) != EOF) {
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case 'h':
|
case 'h':
|
||||||
|
|||||||
Reference in new issue
Block a user