summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-14 02:08:02 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-14 21:24:57 +0100
commit043c432b77165dd149b7b870d3deb52cafe4fdb5 (patch)
tree2f54efdc45d003046d84eb889324b98b6c169f59 /src
parent246aa6dd9dcea84bb945d16ec86e69f869dbb9b4 (diff)
bootchart: no need for memset here
Diffstat (limited to 'src')
-rw-r--r--src/bootchart/bootchart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c
index 37d8fbe6e9..f1b0e58c69 100644
--- a/src/bootchart/bootchart.c
+++ b/src/bootchart/bootchart.c
@@ -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);