summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-06-07 19:52:36 +0200
committerJustus Winter <justus@gnupg.org>2016-06-07 19:52:36 +0200
commitd024ec32b8fbeb039078388d5d3d699a821cfb14 (patch)
tree6b95b2d538875dc18290a92b0eff59dbaa589f9c /trans
parent4cb90fceb779dbf33cfd9bcf28c66ffc737537f2 (diff)
trans/crash: fix blunder
* trans/crash.c (S_crash_dump_task): Fix error handling.
Diffstat (limited to 'trans')
-rw-r--r--trans/crash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/crash.c b/trans/crash.c
index e60ce7ee..058d15e8 100644
--- a/trans/crash.c
+++ b/trans/crash.c
@@ -258,7 +258,7 @@ S_crash_dump_task (mach_port_t port,
if (user_proc != MACH_PORT_NULL)
mach_port_deallocate (mach_task_self (), user_proc);
- if (err == 0 || err = MIG_NO_REPLY)
+ if (err == 0 || err == MIG_NO_REPLY)
{
if (MACH_PORT_VALID (task))
mach_port_deallocate (mach_task_self (), task);