summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 15:50:14 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 15:50:14 +0000
commit101b407d7695abb2252209c88dfd557c13082837 (patch)
tree2dcf91dd4fb8e0d88c4247acff452ed515cc8936 /ufs
parent42bd2716ce2507472bd009077632e196b13afbc2 (diff)
(diskfs_truncate): Remove assignment from if test.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/sizes.c3
1 files changed, 2 insertions, 1 deletions
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 ();