mirror of
https://github.com/samba-team/samba.git
synced 2025-11-26 04:23:49 +03:00
r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
exposed. Unfortunately this generates a large number of type punning warnings. We'll have to find some magic to hide those.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b0de283882
commit
254cbf09de
@@ -528,7 +528,7 @@ static int ldb_search_callback(struct ldb_context *ldb, void *context, struct ld
|
||||
|
||||
res->msgs[res->count + 1] = NULL;
|
||||
|
||||
res->msgs[res->count] = talloc_move(res->msgs, ares->message);
|
||||
res->msgs[res->count] = talloc_move(res->msgs, &ares->message);
|
||||
res->count++;
|
||||
}
|
||||
|
||||
@@ -544,7 +544,7 @@ static int ldb_search_callback(struct ldb_context *ldb, void *context, struct ld
|
||||
goto error;
|
||||
}
|
||||
|
||||
res->refs[n] = talloc_move(res->refs, ares->referral);
|
||||
res->refs[n] = talloc_move(res->refs, &ares->referral);
|
||||
res->refs[n + 1] = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user