From: Laszlo Papp Date: Tue, 22 Mar 2011 11:38:29 +0000 (+0200) Subject: Use the return value for error check X-Git-Tag: fuse_2_9_0~66 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=87a0a37be9a3848704f9a04504b24f740dbac505;p=qemu-gpiodev%2Flibfuse.git Use the return value for error check --- 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);