summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-01-08 11:00:54 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-01-08 11:00:54 +0000
commit348887c5bf9d94cc44cd83c6517eb5cf2ea3209a (patch)
tree1f1bfcf69155f89ee78a286a561d63ce0ea5d3e8
parent4953d0e707e86726b500ad1e34b245c6d5a6bac1 (diff)
always initialize error in inactive
-rw-r--r--sys/msdosfs/msdosfs_denode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c
index f644dfa37ee..b1d456cc977 100644
--- a/sys/msdosfs/msdosfs_denode.c
+++ b/sys/msdosfs/msdosfs_denode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_denode.c,v 1.13 1998/08/21 22:40:02 csapuntz Exp $ */
+/* $OpenBSD: msdosfs_denode.c,v 1.14 1999/01/08 11:00:53 art Exp $ */
/* $NetBSD: msdosfs_denode.c,v 1.23 1997/10/17 11:23:58 ws Exp $ */
/*-
@@ -621,13 +621,14 @@ msdosfs_inactive(v)
if (prtactive && vp->v_usecount != 0)
vprint("msdosfs_inactive(): pushing active", vp);
+ error = 0;
+
/*
* Get rid of denodes related to stale file handles.
*/
if (dep->de_Name[0] == SLOT_DELETED)
goto out;
- error = 0;
/*
* If the file has been deleted and it is on a read/write
* filesystem, then truncate the file, and mark the directory slot