From fcde936670c808da17276205beaaba287f428ca8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 4 Jun 2010 16:21:14 +0200 Subject: [PATCH] Remove a probably outdated test that was always false. --- libisofs/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/image.c b/libisofs/image.c index 3b1baf5..111cc16 100644 --- a/libisofs/image.c +++ b/libisofs/image.c @@ -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;