From ccd8133cc6fbe19dfbb8129e275065079f18a72b Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 30 May 2010 20:29:04 +0200 Subject: [PATCH] Declare variables first in scope --- hashutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashutil.c b/hashutil.c index 06c03eca0..b2aa15dfc 100644 --- a/hashutil.c +++ b/hashutil.c @@ -168,9 +168,9 @@ end: * Make sure that the hash sum changes if the (potential) * expansion of __DATE__ changes. */ - cc_log("Found __DATE__ in %s", path); time_t t = time(NULL); struct tm *now = localtime(&t); + cc_log("Found __DATE__ in %s", path); hash_delimiter(hash, "date"); hash_buffer(hash, &now->tm_year, sizeof(now->tm_year)); hash_buffer(hash, &now->tm_mon, sizeof(now->tm_mon)); -- 2.47.3