summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-16 12:50:35 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-05-16 18:55:07 +0200
commit4ece292c3fba7ec8f02b057a069943a325d091db (patch)
treebdfcf19c944118450eb7a9fd5c6e8a11e33e1aaa
parente2be8995642cd962b7d61c9c231980de88302d50 (diff)
trans/fakeroot: remove spurious semicolon
A spurious semicolon caused a control flow bug in check_openmodes, leading to a port leak. * trans/fakeroot.c (check_openmodes): Remove spurious semicolon.
-rw-r--r--trans/fakeroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 987af243..0ea3cbf4 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -222,7 +222,7 @@ check_openmodes (struct netnode *nn, int newmodes, file_t file)
mach_port_deallocate (mach_task_self (), file);
file = MACH_PORT_NULL;
}
- if (file == MACH_PORT_NULL);
+ if (file == MACH_PORT_NULL)
{
enum retry_type bad_retry;
char bad_retryname[1024]; /* XXX */