git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c1cd9c
)
r17530: Watching the build farm mails carefully pays off...
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 14 Aug 2006 03:28:25 +0000
(
03:28
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:15:34 +0000
(14:15 -0500)
This was another declaration before statement bug, in my just-committed code..
Andrew Bartlett
source/dsdb/samdb/samdb.c
patch
|
blob
|
history
diff --git
a/source/dsdb/samdb/samdb.c
b/source/dsdb/samdb/samdb.c
index 81b5afb2ee96d4f3f6c54102df102f10641a8c6f..8351ad5baf5c2fc5437c1d3d7dd8e74978916982 100644
(file)
--- a/
source/dsdb/samdb/samdb.c
+++ b/
source/dsdb/samdb/samdb.c
@@
-680,11
+680,10
@@
int samdb_copy_template(struct ldb_context *ldb,
struct ldb_result *res;
struct ldb_message *t;
int ret, i, j;
-
- *errstring = NULL;
-
struct ldb_dn *basedn = ldb_dn_explode(ldb, "cn=Templates");
+ *errstring = NULL;
+
/* pull the template record */
ret = ldb_search(ldb, basedn, LDB_SCOPE_SUBTREE, filter, NULL, &res);
talloc_free(basedn);