Add more assertions

This commit is contained in:
Patrick Pelissier committed 2019-06-08 10:45:24 +02:00
1 parent e46746ce01
commit 1882148a7c
2 files changed
+4

No files matched your search

+1
View File
@@ -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;
}