From 87a0a37be9a3848704f9a04504b24f740dbac505 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Tue, 22 Mar 2011 13:38:29 +0200 Subject: [PATCH] Use the return value for error check --- lib/fuse.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/fuse.c b/lib/fuse.c index 32ef6e0..9115af7 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -2203,10 +2203,9 @@ static char *hidden_name(struct fuse *f, fuse_ino_t dir, const char *oldname, newnode = lookup_node(f, dir, newname); } while(newnode); - try_get_path(f, dir, newname, &newpath, NULL, 0); + res = try_get_path(f, dir, newname, &newpath, NULL, 0); pthread_mutex_unlock(&f->lock); - - if (!newpath) + if (res) break; res = fuse_fs_getattr(f->fs, newpath, &buf); -- 2.30.2