From 42cd599d2d804e521db4cd5cc62739bc94562e49 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Thu, 3 Jan 2008 00:18:59 +0100 Subject: [PATCH] Fix bug in DataSource. --- src/data_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data_source.c b/src/data_source.c index 1bd1213..4dd6ad0 100644 --- a/src/data_source.c +++ b/src/data_source.c @@ -127,7 +127,7 @@ void ds_free_data(IsoDataSource *src) data = (struct file_data_src*)src->data; /* close the file if needed */ - if (data->fd != 1) { + if (data->fd != -1) { close(data->fd); } free(data->path);