Made sure that iso_file_get_old_image_sections() returns non-NULL only

if section_count > 0. Made sure that callers in libisofs expect all possible
outcome as announced by API description.
This commit is contained in:
2015-10-09 12:03:14 +02:00
parent 83fb614462
commit e35cb88328
3 changed files with 14 additions and 9 deletions

View File

@@ -5492,7 +5492,8 @@ int iso_file_get_old_image_lba(IsoFile *file, uint32_t *lba, int flag);
* @param section_count
* Returns the number of extent entries in sections array.
* @param sections
* Returns the array of file sections. Apply free() to dispose it.
* Returns the array of file sections if section_count > 0.
* In this case, apply free() to dispose it.
* @param flag
* Reserved for future usage, submit 0
* @return