]> www.vanbest.org Git - sasc-ng.git/commitdiff
fix reload of file which was non-existent on startup
authorleslie <unknown>
Fri, 22 Feb 2008 14:48:19 +0000 (22:48 +0800)
committerleslie <unknown>
Fri, 22 Feb 2008 14:48:19 +0000 (22:48 +0800)
data.c

diff --git a/data.c b/data.c
index f94c84a4e98e85c574f2e2ef6b8b34516213d8ca..73584a5b3c67b1b641385aafbd5df3a4b0f40451 100644 (file)
--- a/data.c
+++ b/data.c
@@ -311,7 +311,7 @@ void cStructLoader::Load(bool reload)
       mtime=curr_mtime;
       doload=true;
       }
-    else if(mtime && mtime<curr_mtime) {
+    else if(mtime<curr_mtime) {
       PRINTF(L_CORE_LOAD,"detected change of %s",path);
       if(IsModified())
         PRINTF(L_CORE_LOAD,"discarding in-memory changes");