Remove a probably outdated test that was always false.

This commit is contained in:
Thomas Schmitt 2010-06-04 16:21:14 +02:00
parent 73c6bc49c6
commit fcde936670
1 changed files with 2 additions and 2 deletions

View File

@ -170,13 +170,13 @@ int iso_image_free_checksums(IsoImage *image, int flag)
*/
int iso_image_attach_data(IsoImage *image, void *data, void (*give_up)(void*))
{
if (image == NULL || (data != NULL && free == NULL)) {
if (image == NULL) {
return ISO_NULL_POINTER;
}
if (image->user_data != NULL) {
/* free previously attached data */
if (image->user_data_free) {
if (image->user_data_free != NULL) {
image->user_data_free(image->user_data);
}
image->user_data = NULL;