diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-11-19 11:56:44 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-11-19 11:56:44 +0100 |
commit | 32dc3707bbb93153f9bd3df32259b7bf0e9cd579 (patch) | |
tree | 5069729ab9dc5bb9560235c7db74e858dbf8841e /metadata | |
parent | f45b677201abb6b8471fa5bc935afda420c28c39 (diff) | |
download | gvfs-32dc3707bbb93153f9bd3df32259b7bf0e9cd579.tar.gz |
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.
Diffstat (limited to 'metadata')
-rw-r--r-- | metadata/metabuilder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/metadata/metabuilder.c b/metadata/metabuilder.c index cca24434..e27d1d30 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 */ |