chiark / gitweb /
bootchart: no need for memset here
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Jan 2013 01:08:02 +0000 (02:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Jan 2013 20:24:57 +0000 (21:24 +0100)
src/bootchart/bootchart.c

index 37d8fbe..f1b0e58 100644 (file)
@@ -75,13 +75,11 @@ int main(int argc, char *argv[])
         struct ps_struct *ps;
         char output_file[PATH_MAX];
         char datestr[200];
-        time_t t;
+        time_t t = 0;
         FILE *f;
         int gind;
         int i;
 
-        memset(&t, 0, sizeof(time_t));
-
         rlim.rlim_cur = 4096;
         rlim.rlim_max = 4096;
         (void) setrlimit(RLIMIT_NOFILE, &rlim);