Add more assertions
This commit is contained in:
1 parent
e46746ce01
commit
1882148a7c
2 files changed
+4
No files matched your search
@@ -196,6 +196,7 @@ string_clear_get_str(string_t v)
|
||||
M_MEMORY_FULL(sizeof (char) * alloc);
|
||||
return NULL;
|
||||
}
|
||||
assert(ptr != NULL && p != NULL);
|
||||
memcpy(ptr, p, alloc);
|
||||
p = ptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user