1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

-Fixes from source code analyzizer, closes #1768

This commit is contained in:
Juan Linietsky
2015-05-01 10:44:08 -03:00
parent af42e244e0
commit 4804462ee0
17 changed files with 31 additions and 31 deletions

View File

@@ -153,7 +153,7 @@ void* MemoryPoolStaticMalloc::_realloc(void *p_memory,size_t p_bytes) {
return alloc( p_bytes );
}
if (p_bytes<=0) {
if (p_bytes==0) {
this->free(p_memory);
ERR_FAIL_COND_V( p_bytes < 0 , NULL );