Remove superfluous localtime() call
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 31 May 2011 09:27:58 +0000 (12:27 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 31 May 2011 09:27:58 +0000 (12:27 +0300)
- The tm pointer is reset to localtime(&when) before accessed,
  this is nothing but a dead call and assignment

lib/query.c

index 3d5b7f2..3da114a 100644 (file)
@@ -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));