summaryrefslogtreecommitdiffstats
path: root/utils/ipodpatcher/ipodio-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ipodpatcher/ipodio-posix.c')
-rw-r--r--utils/ipodpatcher/ipodio-posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ipodpatcher/ipodio-posix.c b/utils/ipodpatcher/ipodio-posix.c
index 9b386d994f..dc856a2e0d 100644
--- a/utils/ipodpatcher/ipodio-posix.c
+++ b/utils/ipodpatcher/ipodio-posix.c
@@ -355,6 +355,7 @@ int ipod_reopen_rw(struct ipod_t* ipod)
int ipod_close(struct ipod_t* ipod)
{
close(ipod->dh);
+ ipod->dh = -1;
return 0;
}