summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
Diffstat (limited to 'exec')
-rw-r--r--exec/hostarch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/hostarch.c b/exec/hostarch.c
index 398e6423..38a38a00 100644
--- a/exec/hostarch.c
+++ b/exec/hostarch.c
@@ -35,8 +35,8 @@ bfd_mach_host_arch_mach (host_t host,
struct host_basic_info hostinfo;
mach_msg_type_number_t hostinfocnt = HOST_BASIC_INFO_COUNT;
- if (err = host_info (host, HOST_BASIC_INFO,
- (natural_t *) &hostinfo, &hostinfocnt))
+ err = host_info (host, HOST_BASIC_INFO, (natural_t *) &hostinfo, &hostinfocnt);
+ if (err)
return err;
*machine = hostinfo.cpu_subtype;