summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-14 21:41:00 +0100
committerVolker Lendecke <vl@samba.org>2011-02-20 10:23:29 +0100
commit88f52155607ccc653d4f4610557bfa10b83e4c73 (patch)
tree3311ac25a44293330c28a4ca02691fdf8958511f
parent13bfae95e7eae9cdca0c20af7b6c95138504d76a (diff)
downloadsamba-88f52155607ccc653d4f4610557bfa10b83e4c73.tar.gz
samba-88f52155607ccc653d4f4610557bfa10b83e4c73.tar.bz2
samba-88f52155607ccc653d4f4610557bfa10b83e4c73.zip
s3: Slightly simplify Get_Pwnam_alloc
-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 */