From a737ed394b3979b40ada046b1fb1fba521c29f66 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Sat, 18 Mar 2006 13:06:38 +0000 Subject: [PATCH] Don't use intarg uninitialized in wsdisplay_usl_ioctl2. Fixes CID 2507 --- sys/dev/wscons/wsdisplay_compat_usl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/wscons/wsdisplay_compat_usl.c b/sys/dev/wscons/wsdisplay_compat_usl.c index f56b47bae9bf..4b37dd119119 100644 --- a/sys/dev/wscons/wsdisplay_compat_usl.c +++ b/sys/dev/wscons/wsdisplay_compat_usl.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsdisplay_compat_usl.c,v 1.30 2005/12/11 12:24:12 christos Exp $ */ +/* $NetBSD: wsdisplay_compat_usl.c,v 1.31 2006/03/18 13:06:38 jmcneill Exp $ */ /* * Copyright (c) 1998 @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wsdisplay_compat_usl.c,v 1.30 2005/12/11 12:24:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wsdisplay_compat_usl.c,v 1.31 2006/03/18 13:06:38 jmcneill Exp $"); #include "opt_compat_freebsd.h" #include "opt_compat_netbsd.h" @@ -354,7 +354,7 @@ wsdisplay_usl_ioctl2(struct wsdisplay_softc *sc, struct wsscreen *scr, u_long cmd, caddr_t data, int flag, struct lwp *l) { struct proc *p = l->l_proc; - int intarg, res; + int intarg = 0, res; u_long req; void *arg; struct usl_syncdata *sd;