From 46d5824887b489ca160439b499db59d8c8ab7599 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 29 Dec 2001 00:19:39 +0000 Subject: 2001-12-22 Roland McGrath * fs.c (ftpfs_create): Move braces around to avoid warning. --- ftpfs/fs.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'ftpfs') 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 + Copyright (C) 1997,2001 Free Software Foundation, Inc. + Written by Miles Bader 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); -- cgit v1.2.3