Tell nls_setlocale() the very locale name from command line option,
rather than using optarg variable which would be allways NULL.
This commit is contained in:
parent
969f700138
commit
19434a77d6
@ -124,7 +124,7 @@ smb_ctx_init(struct smb_ctx *ctx, int argc, char *argv[],
|
||||
return error;
|
||||
break;
|
||||
case 'L':
|
||||
error = nls_setlocale(optarg);
|
||||
error = nls_setlocale(arg);
|
||||
if (error)
|
||||
break;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user