diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-29 00:19:39 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-29 00:19:39 +0000 |
commit | 46d5824887b489ca160439b499db59d8c8ab7599 (patch) | |
tree | 9d3d5094f8be48d90e4bf35be5b0e19d299db55c /ftpfs | |
parent | dea85e822e483dd3b6cdca1b355e16d2153d82cd (diff) |
2001-12-22 Roland McGrath <roland@frob.com>
* fs.c (ftpfs_create): Move braces around to avoid warning.
Diffstat (limited to 'ftpfs')
-rw-r--r-- | ftpfs/fs.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ /* Fs operations - Copyright (C) 1997 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Copyright (C) 1997,2001 Free Software Foundation, Inc. + Written by Miles Bader <miles@gnu.org> This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or @@ -67,11 +67,13 @@ ftpfs_create (char *rmt_path, int fsid, super_root = netfs_make_node (0); if (! super_root) err = ENOMEM; + else + { + err = ftpfs_dir_create (new, super_root, rmt_path, &super_root_dir); + if (! err) + err = ftpfs_dir_null_lookup (super_root_dir, &new->root); + } } - if (! err) - err = ftpfs_dir_create (new, super_root, rmt_path, &super_root_dir); - if (! err) - err = ftpfs_dir_null_lookup (super_root_dir, &new->root); if (err) free (new); |