summaryrefslogtreecommitdiffstats
path: root/contrib/smbfs/lib/smb/ctx.c
diff options
context:
space:
mode:
authorimura <imura@FreeBSD.org>2005-08-07 08:46:56 +0000
committerimura <imura@FreeBSD.org>2005-08-07 08:46:56 +0000
commit5a67019bb80da7558b0762003696b2f5d9ee8cec (patch)
treed6ade3209510b4fa6d71a8fa93e1b626a6ef6644 /contrib/smbfs/lib/smb/ctx.c
parent7907f74429f7c0fd75c643f450bb1e813c444315 (diff)
downloadFreeBSD-src-5a67019bb80da7558b0762003696b2f5d9ee8cec.zip
FreeBSD-src-5a67019bb80da7558b0762003696b2f5d9ee8cec.tar.gz
Tell nls_setlocale() the very locale name from command line option,
rather than using optarg variable which would be allways NULL.
Diffstat (limited to 'contrib/smbfs/lib/smb/ctx.c')
-rw-r--r--contrib/smbfs/lib/smb/ctx.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud