Changeset 22409

Show
Ignore:
Timestamp:
10/02/07 09:17:19 (14 months ago)
Author:
axeld
Message:

* load_program() (and probably others) could call delete_image() with a NULL

pointer - which it now handles gracefully.

* This also fixes starting the runtime loader directly: it no longer crashes

but will just return an error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/system/runtime_loader/elf.cpp

    r22332 r22409  
    371371delete_image(image_t *image) 
    372372{ 
     373        if (image == NULL) 
     374                return; 
     375 
    373376        _kern_unregister_image(image->id); 
    374377                // registered in load_container()