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

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*)) 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; return ISO_NULL_POINTER;
} }
if (image->user_data != NULL) { if (image->user_data != NULL) {
/* free previously attached data */ /* 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_free(image->user_data);
} }
image->user_data = NULL; image->user_data = NULL;