From 19434a77d62f80ba483e37962c632527a7810b85 Mon Sep 17 00:00:00 2001 From: "R. Imura" Date: Sun, 7 Aug 2005 08:46:56 +0000 Subject: [PATCH] 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(-) diff --git a/contrib/smbfs/lib/smb/ctx.c b/contrib/smbfs/lib/smb/ctx.c index 39c0d02ecdd8..9abe9ca2f159 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;