diff options
Diffstat (limited to 'src/deps_log.h')
-rw-r--r-- | src/deps_log.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/deps_log.h b/src/deps_log.h index 4b357a8..820997e 100644 --- a/src/deps_log.h +++ b/src/deps_log.h @@ -72,7 +72,8 @@ struct DepsLog { // Reading (startup-time) interface. struct Deps { - Deps() : mtime(-1), node_count(0), nodes(NULL) {} + Deps(int mtime, int node_count) + : mtime(mtime), node_count(node_count), nodes(new Node*[node_count]) {} ~Deps() { delete [] nodes; } int mtime; int node_count; |