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:
R. Imura 2005-08-07 08:46:56 +00:00
parent 969f700138
commit 19434a77d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148815

View File

@ -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;