summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/username.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c
index d1789a5364..7d3a5413f2 100644
--- a/source3/lib/username.c
+++ b/source3/lib/username.c
@@ -193,7 +193,6 @@ done:
struct passwd *Get_Pwnam_alloc(TALLOC_CTX *mem_ctx, const char *user)
{
fstring user2;
- struct passwd *ret;
if ( *user == '\0' ) {
DEBUG(10,("Get_Pwnam: empty username!\n"));
@@ -204,9 +203,7 @@ struct passwd *Get_Pwnam_alloc(TALLOC_CTX *mem_ctx, const char *user)
DEBUG(5,("Finding user %s\n", user));
- ret = Get_Pwnam_internals(mem_ctx, user, user2);
-
- return ret;
+ return Get_Pwnam_internals(mem_ctx, user, user2);
}
/* The functions below have been taken from password.c and slightly modified */