Fix missing initialization of tmpvn; thanks gcc.

This commit is contained in:
christos 2006-08-13 00:56:37 +00:00
parent 595db2454b
commit 5afff5edf4
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: x86_autoconf.c,v 1.18 2006/08/12 21:45:22 christos Exp $ */
/* $NetBSD: x86_autoconf.c,v 1.19 2006/08/13 00:56:37 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -317,6 +317,9 @@ match_bootwedge(struct device *dv, struct btinfo_bootwedge *biw)
if (biw->matchblk == -1)
return (0);
if ((tmpvn = opendisk(dv)) == NULL)
return 0;
MD5Init(&ctx);
for (blk = biw->matchblk, nblks = biw->matchnblks;
nblks != 0; nblks--, blk++) {