Merge pull request #3085 from alexhenrie/memory_alloc
Fix null pointer check in blas_memory_alloc
This commit is contained in:
commit
eea0c0f2ed
|
@ -1241,7 +1241,7 @@ UNLOCK_COMMAND(&alloc_lock);
|
||||||
|
|
||||||
func = &memoryalloc[0];
|
func = &memoryalloc[0];
|
||||||
|
|
||||||
while ((func != NULL) && (map_address == (void *) -1)) {
|
while ((*func != NULL) && (map_address == (void *) -1)) {
|
||||||
|
|
||||||
map_address = (*func)((void *)base_address);
|
map_address = (*func)((void *)base_address);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue