From: lace <> Date: Sun, 1 Jan 2006 09:12:57 +0000 (+0000) Subject: Fixed SIGSEGV on the recent sub-second timestamps. X-Git-Tag: captive-1_1_7~26 X-Git-Url: https://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=070549f36c595e1547bff2d64c1112d86af9248b Fixed SIGSEGV on the recent sub-second timestamps. --- diff --git a/src/client/fuse/op_readdir.c b/src/client/fuse/op_readdir.c index 6aceb66..16f920a 100644 --- a/src/client/fuse/op_readdir.c +++ b/src/client/fuse/op_readdir.c @@ -53,14 +53,17 @@ struct stat stat; int errint; errint=capfuse_captive_file_info_object_to_stat(&stat,captive_file_info_object); - g_object_unref(captive_file_info_object); - if (errint) + if (errint) { + g_object_unref(captive_file_info_object); return errint; + } errint=(*fill_dir)( buf, /* buf; opaque */ captive_file_info_object->p.name, /* name */ &stat, /* stbuf */ 0); /* off; operation mode 1 - /(*readdir) */ + /* WARNING: (*fill_dir) needs: *captive_file_info_object->p.name */ + g_object_unref(captive_file_info_object); if (errint) { /* FIXME: Is it right? Examples do so. */ break;