summaryrefslogtreecommitdiff
path: root/ftpfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-12-29 00:19:39 +0000
committerRoland McGrath <roland@gnu.org>2001-12-29 00:19:39 +0000
commit46d5824887b489ca160439b499db59d8c8ab7599 (patch)
tree9d3d5094f8be48d90e4bf35be5b0e19d299db55c /ftpfs
parentdea85e822e483dd3b6cdca1b355e16d2153d82cd (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.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/ftpfs/fs.c b/ftpfs/fs.c
index 2e049179..db6205ce 100644
--- a/ftpfs/fs.c
+++ b/ftpfs/fs.c
@@ -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);