diff options
author | imura <imura@FreeBSD.org> | 2005-08-07 08:46:56 +0000 |
---|---|---|
committer | imura <imura@FreeBSD.org> | 2005-08-07 08:46:56 +0000 |
commit | 5a67019bb80da7558b0762003696b2f5d9ee8cec (patch) | |
tree | d6ade3209510b4fa6d71a8fa93e1b626a6ef6644 /contrib/smbfs | |
parent | 7907f74429f7c0fd75c643f450bb1e813c444315 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | contrib/smbfs/lib/smb/ctx.c | 2 |
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; |