diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-31 22:38:54 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-31 22:39:13 +0200 |
commit | b4d5f4dd67bd838cc0ccd4b96b08da59858adae5 (patch) | |
tree | 0bfb53825733605bac480944b8c234f38ca8cd8d | |
parent | 301be8c99b4646f0947ef94e12ffda433854b659 (diff) | |
download | samba-b4d5f4dd67bd838cc0ccd4b96b08da59858adae5.tar.gz samba-b4d5f4dd67bd838cc0ccd4b96b08da59858adae5.tar.bz2 samba-b4d5f4dd67bd838cc0ccd4b96b08da59858adae5.zip |
Remove a pointless variable
-rw-r--r-- | source3/winbindd/winbindd_user.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_user.c b/source3/winbindd/winbindd_user.c index da6a303e5d..5ab2f2b4a6 100644 --- a/source3/winbindd/winbindd_user.c +++ b/source3/winbindd/winbindd_user.c @@ -426,14 +426,12 @@ void winbindd_getpwnam(struct winbindd_cli_state *state) fstring domname, username; char *mapped_user = NULL; char *domuser; - size_t dusize; NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL; domuser = state->request->data.username; - dusize = sizeof(state->request->data.username); /* Ensure null termination (it's an fstring) */ - domuser[dusize-1] = '\0'; + domuser[sizeof(state->request->data.username)-1] = '\0'; DEBUG(3, ("[%5lu]: getpwnam %s\n", (unsigned long)state->pid, |