diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-12 19:40:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-12 19:40:19 +0000 |
commit | f379eac3c081e63fbce2a6e562cca56dcb0d21ac (patch) | |
tree | 07a125dc25c57c6a83130ad83ff37af1cd7ce21d /usr.sbin/apmd/apmd.c | |
parent | c7adf58d3ac95ffcfe676a16c3102b0740dce6fb (diff) |
do not pass uninitialized variable cpuspeed up; ok kettenis
Diffstat (limited to 'usr.sbin/apmd/apmd.c')
-rw-r--r-- | usr.sbin/apmd/apmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index d36191cc382..02a6feebc56 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.43 2006/03/15 20:30:28 sturm Exp $ */ +/* $OpenBSD: apmd.c,v 1.44 2006/04/12 19:40:18 deraadt Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -307,7 +307,7 @@ handle_client(int sock_fd, int ctl_fd) struct apm_command cmd; struct apm_reply reply; int cpuspeed_mib[] = {CTL_HW, HW_CPUSPEED}; - int cpuspeed; + int cpuspeed = 0; size_t cpuspeed_sz = sizeof(cpuspeed); fromlen = sizeof(from); |