aboutsummaryrefslogtreecommitdiff
path: root/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'cache.c')
-rw-r--r--cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache.c b/cache.c
index ff74199..2ccf115 100644
--- a/cache.c
+++ b/cache.c
@@ -244,9 +244,9 @@ static int cache_dirfill(fuse_cache_dirh_t ch, const char *name,
{
int err = ch->filler(ch->h, name, 0, 0);
if (!err) {
+ char *fullpath;
g_ptr_array_add(ch->dir, g_strdup(name));
- char *fullpath = g_strdup_printf("%s/%s",
- !ch->path[1] ? "" : ch->path, name);
+ fullpath = g_strdup_printf("%s/%s", !ch->path[1] ? "" : ch->path, name);
cache_add_attr(fullpath, stbuf);
g_free(fullpath);
}