aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-04-13 11:38:40 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-04-13 11:38:40 +0000
commiteffd586502b27c97e44bca4e4248adaaba5ef067 (patch)
tree23713f0a8309aa3f75af4cc6168cdf306c55da0f
parentb1ddd5f430836251058e2d0e71728f2beee62a17 (diff)
downloadsshfs-effd586502b27c97e44bca4e4248adaaba5ef067.tar
sshfs-effd586502b27c97e44bca4e4248adaaba5ef067.tar.gz
sshfs-effd586502b27c97e44bca4e4248adaaba5ef067.tar.bz2
sshfs-effd586502b27c97e44bca4e4248adaaba5ef067.zip
fix
-rw-r--r--ChangeLog4
-rw-r--r--cache.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 89001eb..dd90926 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-13 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix compilation with gcc-2.95. Reported by David A. Gershman
+
2005-03-08 Miklos Szeredi <miklos@szeredi.hu>
* Make it work on server version 2 (e.g. Sun_SSH_1.0.1). Report
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);
}