diff options
Diffstat (limited to 'src/ctx.c')
-rw-r--r-- | src/ctx.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include "pwcache.h" #include "stat.h" #include "trie.h" +#include "xtime.h" #include <assert.h> #include <errno.h> #include <limits.h> @@ -109,6 +110,10 @@ struct bfs_ctx *bfs_ctx_new(void) { goto fail; } + if (xgettime(&ctx->now) != 0) { + goto fail; + } + return ctx; fail: |