mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
lib/util: Replace an SMB_ASSERT()
Avoid a cyclic dependency. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b69edfed7d
commit
2426130c90
@ -146,7 +146,11 @@ _PUBLIC_ char *string_sub_talloc(TALLOC_CTX *mem_ctx, const char *s,
|
||||
if (ret == NULL)
|
||||
return NULL;
|
||||
|
||||
SMB_ASSERT(ret[len] == '\0');
|
||||
if (ret[len] != '\0') {
|
||||
DEBUG(0,("Internal error at %s(%d): string not terminated\n",
|
||||
__FILE__, __LINE__));
|
||||
abort();
|
||||
}
|
||||
|
||||
talloc_set_name_const(ret, ret);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user