diff options
Diffstat (limited to 'libdiskfs/node-rdwr.c')
-rw-r--r-- | libdiskfs/node-rdwr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/node-rdwr.c b/libdiskfs/node-rdwr.c index 4f4b461f..438b7426 100644 --- a/libdiskfs/node-rdwr.c +++ b/libdiskfs/node-rdwr.c @@ -41,8 +41,11 @@ diskfs_node_rdwr (struct node *np, if (dir) while (off + amt > np->allocsize) - if (err = diskfs_grow (np, off + amt, cred)) - return err; + { + err = diskfs_grow (np, off + amt, cred); + if (err) + return err; + } if (off + amt > np->dn_stat.st_size) { |