mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lib: Use talloc_realloc instead of talloc_realloc_size
Maybe Coverity understands that talloc_realloc re-allocates the input buf. It does not understand that talloc_realloc_size does it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
c75b08c0d6
commit
79b05108ec
@ -95,7 +95,7 @@ static char *get_user_home_dir(TALLOC_CTX *mem_ctx)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
len = newlen;
|
len = newlen;
|
||||||
tmp = talloc_realloc_size(mem_ctx, buf, len);
|
tmp = talloc_realloc(mem_ctx, buf, char, len);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user