From 101b407d7695abb2252209c88dfd557c13082837 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 20 Jun 1995 15:50:14 +0000 Subject: (diskfs_truncate): Remove assignment from if test. --- ufs/sizes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ufs') diff --git a/ufs/sizes.c b/ufs/sizes.c index ef7666b1..8657ce13 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -58,7 +58,8 @@ diskfs_truncate (struct node *np, { error_t err; - if (err = diskfs_catch_exception ()) + err = diskfs_catch_exception (); + if (err) return err; bzero (di->di_shortlink + length, np->dn_stat.st_size - length); diskfs_end_catch_exception (); -- cgit v1.2.3