From 5a67019bb80da7558b0762003696b2f5d9ee8cec Mon Sep 17 00:00:00 2001 From: imura Date: Sun, 7 Aug 2005 08:46:56 +0000 Subject: Tell nls_setlocale() the very locale name from command line option, rather than using optarg variable which would be allways NULL. --- contrib/smbfs/lib/smb/ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/smbfs/lib/smb/ctx.c') diff --git a/contrib/smbfs/lib/smb/ctx.c b/contrib/smbfs/lib/smb/ctx.c index 39c0d02..9abe9ca 100644 --- a/contrib/smbfs/lib/smb/ctx.c +++ b/contrib/smbfs/lib/smb/ctx.c @@ -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; -- cgit v1.1