diff options
author | Michael Adam <obnox@samba.org> | 2008-03-17 01:32:47 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-17 08:22:33 +0100 |
commit | 647432a40c5b87c6c24157270e24f2bdb628a112 (patch) | |
tree | 7b277a42cea9bcf85ada9a80a0f8b61354d02ddd | |
parent | 18a407de8c4cdb1513d6c949a5e61db2787b5af2 (diff) | |
download | samba-647432a40c5b87c6c24157270e24f2bdb628a112.tar.gz samba-647432a40c5b87c6c24157270e24f2bdb628a112.tar.bz2 samba-647432a40c5b87c6c24157270e24f2bdb628a112.zip |
registry: remove an unused variable from regdb_set_secdesc().
Michael
(This used to be commit 76dad05e4ce4b4cb26557bc151359ed9d58d6317)
-rw-r--r-- | source3/registry/reg_backend_db.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 8a35e8c44d..fb071ae273 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -911,16 +911,12 @@ static WERROR regdb_get_secdesc(TALLOC_CTX *mem_ctx, const char *key, static WERROR regdb_set_secdesc(const char *key, struct security_descriptor *secdesc) { - prs_struct ps; TALLOC_CTX *mem_ctx = talloc_stackframe(); char *tdbkey; WERROR err = WERR_NOMEM; TDB_DATA tdbdata; int tdb_ret; - - ZERO_STRUCT(ps); - tdbkey = talloc_asprintf(mem_ctx, "%s/%s", REG_SECDESC_PREFIX, key); if (tdbkey == NULL) { goto done; @@ -936,7 +932,6 @@ static WERROR regdb_set_secdesc(const char *key, } else { err = WERR_OK; } - goto done; } @@ -955,7 +950,6 @@ static WERROR regdb_set_secdesc(const char *key, } done: - prs_mem_free(&ps); TALLOC_FREE(mem_ctx); return err; } |