1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s4:ldb Fix declaration in the middle of the code

This commit is contained in:
Simo Sorce 2009-12-23 10:33:26 -05:00
parent 4cc0bb7d04
commit 7e8b042b07

View File

@ -84,9 +84,10 @@ static void usage(void)
int main(int argc, const char **argv)
{
struct ldb_control **req_ctrls;
struct ldb_cmdline *options;
struct ldb_context *ldb;
int ret = 0, i;
struct ldb_cmdline *options;
ldb = ldb_init(NULL, NULL);
@ -96,7 +97,8 @@ int main(int argc, const char **argv)
usage();
exit(1);
}
struct ldb_control **req_ctrls = ldb_parse_control_strings(ldb, ldb, (const char **)options->controls);
req_ctrls = ldb_parse_control_strings(ldb, ldb, (const char **)options->controls);
if (options->controls != NULL && req_ctrls== NULL) {
printf("parsing controls failed: %s\n", ldb_errstring(ldb));
return -1;