lib: Add proper {} to tcopy_passwd
authorVolker Lendecke <vl@samba.org>
Tue, 18 Nov 2014 09:37:15 +0000 (10:37 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 18 Nov 2014 20:45:40 +0000 (21:45 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 18 21:45:40 CET 2014 on sn-devel-104

lib/util/util_pw.c

index 1e6de4f17f6573574f720f3f07a1baea78ce2599..dae3a69492ae43af28e16ac5c6bb8e4863edda9e 100644 (file)
@@ -42,8 +42,9 @@ struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx,
 
        ret = talloc_pooled_object(mem_ctx, struct passwd, 5, len);
 
-       if (ret == NULL)
+       if (ret == NULL) {
                return NULL;
+       }
 
        ret->pw_name = talloc_strdup(ret, from->pw_name);
        ret->pw_passwd = talloc_strdup(ret, from->pw_passwd);