diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-15 14:13:42 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-15 14:13:42 +0200 |
commit | f4007c7ff3d1f1f686bf3c74399027f7d91de86b (patch) | |
tree | 51b441aafdc662c09ea76d73b7e43f1ce8e7f028 /tools.c | |
parent | 4a9fd9b097c0c1bbd37b436bbd4bb0a6a6bf78a9 (diff) | |
download | vdr-f4007c7ff3d1f1f686bf3c74399027f7d91de86b.tar.gz vdr-f4007c7ff3d1f1f686bf3c74399027f7d91de86b.tar.bz2 |
cTimeMs is no longer initialized to the current time if the value given to the constructor is negative1.7.20
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.c 2.16 2011/08/15 12:23:20 kls Exp $ + * $Id: tools.c 2.17 2011/08/15 13:35:23 kls Exp $ */ #include "tools.h" @@ -571,7 +571,10 @@ time_t LastModifiedTime(const char *FileName) cTimeMs::cTimeMs(int Ms) { - Set(Ms); + if (Ms >= 0) + Set(Ms); + else + begin = 0; } uint64_t cTimeMs::Now(void) |