[gvfs] If there are no mtimes in the file, use 0 as mtime base
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs] If there are no mtimes in the file, use 0 as mtime base
- Date: Thu, 19 Nov 2009 10:59:19 +0000 (UTC)
commit 32dc3707bbb93153f9bd3df32259b7bf0e9cd579
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 19 11:56:44 2009 +0100
If there are no mtimes in the file, use 0 as mtime base
Before we used to store -1 (0xffffffff) as the mtime base in this case.
This value is not used if there are no mtimes though, so this is more
like a cosmetic change.
metadata/metabuilder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/metadata/metabuilder.c b/metadata/metabuilder.c
index cca2443..e27d1d3 100644
--- a/metadata/metabuilder.c
+++ b/metadata/metabuilder.c
@@ -940,7 +940,8 @@ metadata_create_static (MetaBuilder *builder,
/* Store the base as the min value in use minus one so that
0 is free to mean "not defined" */
- time_t_min = time_t_min - 1;
+ if (time_t_min != 0)
+ time_t_min = time_t_min - 1;
/* Pick the base as the minimum, unless that leads to
a 32bit overflow */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]