initialize error return to zero (4.3BSD-reno/sys/6)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Mon, 1 Apr 1991 02:36:13 +0000 (18:36 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Mon, 1 Apr 1991 02:36:13 +0000 (18:36 -0800)
SCCS-vsn: sys/vax/uba/dz.c 7.12

usr/src/sys/vax/uba/dz.c

index e0f503d..97c06a2 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)dz.c        7.11 (Berkeley) %G%
+ *     @(#)dz.c        7.12 (Berkeley) %G%
  */
 
 #include "dz.h"
  */
 
 #include "dz.h"
@@ -155,7 +155,7 @@ dzopen(dev, flag)
 {
        register struct tty *tp;
        register int unit;
 {
        register struct tty *tp;
        register int unit;
-       int error, dzparam();
+       int error = 0, dzparam();
  
        unit = minor(dev);
        if (unit >= dz_cnt || dzpdma[unit].p_addr == 0)
  
        unit = minor(dev);
        if (unit >= dz_cnt || dzpdma[unit].p_addr == 0)