summaryrefslogtreecommitdiffstats
path: root/emulators/simh/files/patch-I1401_i1401__cd.c
blob: 5e4308011d0ca647c0f623ec8028dbd55e42b4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- I1401/i1401_cd.c.orig	2016-12-01 22:43:42 UTC
+++ I1401/i1401_cd.c
@@ -184,7 +184,7 @@ t_stat r;
 
 if (sim_is_active (&cdr_unit)) {                        /* busy? */
     sim_cancel (&cdr_unit);                             /* cancel */
-    if (r = cdr_svc (&cdr_unit))                        /* process */
+    if ((r = cdr_svc (&cdr_unit)))                      /* process */
         return r;
     }
 if ((cdr_unit.flags & UNIT_ATT) == 0)                   /* attached? */
OpenPOWER on IntegriCloud