From 5006b8fbce0e9286fd79b26889c64f0884f555d1 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 31 May 2011 12:27:58 +0300 Subject: [PATCH] Remove superfluous localtime() call - The tm pointer is reset to localtime(&when) before accessed, this is nothing but a dead call and assignment --- lib/query.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/query.c b/lib/query.c index 3d5b7f2..3da114a 100644 --- a/lib/query.c +++ b/lib/query.c @@ -42,10 +42,8 @@ static void printFileInfo(const char * name, char *link = NULL; /* On first call, grab snapshot of now */ - if (now == 0) { + if (now == 0) now = time(NULL); - tm = localtime(&now); - } rstrlcpy(ownerfield, owner, sizeof(ownerfield)); rstrlcpy(groupfield, group, sizeof(groupfield)); -- 2.7.4