diff options
author | Laszlo Papp <ext-laszlo.papp@nokia.com> | 2011-03-22 13:38:29 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-03-30 19:34:58 +0200 |
commit | 87a0a37be9a3848704f9a04504b24f740dbac505 (patch) | |
tree | eaafa6700f354f27ee12388eace95b0cb5172f7b /lib/fuse.c | |
parent | b812c4c40627809d92d7cb4b3de1059066399380 (diff) | |
download | android_external_fuse-87a0a37be9a3848704f9a04504b24f740dbac505.tar.gz android_external_fuse-87a0a37be9a3848704f9a04504b24f740dbac505.tar.bz2 android_external_fuse-87a0a37be9a3848704f9a04504b24f740dbac505.zip |
Use the return value for error check
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |