Fix uninitialised variable introduced with previous change.
Patch from mlelstv.
This commit is contained in:
parent
07da406c30
commit
5a696d0850
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: wsmux.c,v 1.34 2003/09/21 19:17:02 jdolecek Exp $ */
|
/* $NetBSD: wsmux.c,v 1.35 2003/09/23 09:16:07 simonb Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
@ -44,7 +44,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: wsmux.c,v 1.34 2003/09/21 19:17:02 jdolecek Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: wsmux.c,v 1.35 2003/09/23 09:16:07 simonb Exp $");
|
||||||
|
|
||||||
#include "wsdisplay.h"
|
#include "wsdisplay.h"
|
||||||
#include "wsmux.h"
|
#include "wsmux.h"
|
||||||
@ -509,7 +509,8 @@ wsmux_do_ioctl(struct device *dv, u_long cmd, caddr_t data, int flag,
|
|||||||
return (0);
|
return (0);
|
||||||
case FIOSETOWN:
|
case FIOSETOWN:
|
||||||
DPRINTF(("%s: FIOSETOWN\n", sc->sc_base.me_dv.dv_xname));
|
DPRINTF(("%s: FIOSETOWN\n", sc->sc_base.me_dv.dv_xname));
|
||||||
if (sc->sc_base.me_evp == NULL)
|
evar = sc->sc_base.me_evp;
|
||||||
|
if (evar == NULL)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
if (-*(int *)data != evar->io->p_pgid
|
if (-*(int *)data != evar->io->p_pgid
|
||||||
&& *(int *)data != evar->io->p_pid)
|
&& *(int *)data != evar->io->p_pid)
|
||||||
|
Loading…
Reference in New Issue
Block a user