Fix NULL pointer checks in blas_memory_alloc

This commit is contained in:
Martin Kroeker 2021-11-05 10:43:17 +01:00 committed by GitHub
parent 2c32e462ac
commit 4f057bffd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2921,7 +2921,7 @@ void *blas_memory_alloc(int procpos){
func = &memoryalloc[0];
while ((func != NULL) && (map_address == (void *) -1)) {
while ((*func != NULL) && (map_address == (void *) -1)) {
map_address = (*func)((void *)base_address);
@ -3032,7 +3032,7 @@ allocation2:
func = &memoryalloc[0];
while ((func != NULL) && (map_address == (void *) -1)) {
while ((*func != NULL) && (map_address == (void *) -1)) {
map_address = (*func)((void *)base_address);