Fixed NULL related warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24484 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -757,7 +757,7 @@ find_symbol(image_t *image, const char *name, int32 type)
|
|||||||
// ToDo: "type" is currently ignored!
|
// ToDo: "type" is currently ignored!
|
||||||
(void)type;
|
(void)type;
|
||||||
|
|
||||||
if (image->dynamic_ptr == NULL)
|
if (image->dynamic_ptr == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
hash = elf_hash((uint8 *)name) % HASHTABSIZE(image);
|
hash = elf_hash((uint8 *)name) % HASHTABSIZE(image);
|
||||||
@@ -1093,7 +1093,7 @@ load_container(char const *name, image_type type, const char *rpath, image_t **_
|
|||||||
goto err3;
|
goto err3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eheader.e_entry != NULL)
|
if (eheader.e_entry != 0)
|
||||||
image->entry_point = eheader.e_entry + image->regions[0].delta;
|
image->entry_point = eheader.e_entry + image->regions[0].delta;
|
||||||
|
|
||||||
image->type = type;
|
image->type = type;
|
||||||
@@ -1309,7 +1309,7 @@ init_dependencies(image_t *image, bool initHead)
|
|||||||
|
|
||||||
TRACE(("%ld: init: %s\n", find_thread(NULL), image->name));
|
TRACE(("%ld: init: %s\n", find_thread(NULL), image->name));
|
||||||
|
|
||||||
if (image->init_routine != NULL)
|
if (image->init_routine != 0)
|
||||||
((init_term_function)image->init_routine)(image->id);
|
((init_term_function)image->init_routine)(image->id);
|
||||||
}
|
}
|
||||||
TRACE(("%ld: init done.\n", find_thread(NULL)));
|
TRACE(("%ld: init done.\n", find_thread(NULL)));
|
||||||
@@ -1392,7 +1392,7 @@ load_program(char const *path, void **_entry)
|
|||||||
(symbol->st_value + image->regions[0].delta);
|
(symbol->st_value + image->regions[0].delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sProgramImage->entry_point == NULL) {
|
if (sProgramImage->entry_point == 0) {
|
||||||
status = B_NOT_AN_EXECUTABLE;
|
status = B_NOT_AN_EXECUTABLE;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user