Alfred Klomp
b308dd72d9
timing.c: avoid referencing garbage value
...
Found with Clang's `scan-build` tool.
When get_timer() is called with `reset` set to 1, the value of
t->start.tv_sec is used as a rvalue without being initialized first.
This is relatively harmless because the result of get_timer() is not
used by the callers when called in "reset mode". However, scan-build
prints a warning.
Silence the warning by only calculating the delta on non-reset runs,
returning zero otherwise.
2014-08-14 11:34:35 +02:00
..
2012-11-17 00:04:49 +01:00
2014-07-09 10:19:22 +02:00
2014-06-25 11:26:13 +02:00
2014-07-09 10:19:22 +02:00
2014-06-17 17:06:47 +02:00
2014-06-17 17:06:47 +02:00
2014-07-04 15:01:00 +02:00
2014-07-10 15:27:10 +02:00
2014-07-09 10:19:22 +02:00
2014-07-09 10:19:22 +02:00
2014-07-10 15:27:10 +02:00
2014-05-01 13:03:14 +02:00
2014-08-14 11:34:33 +02:00
2014-07-09 10:19:24 +02:00
2014-07-09 10:21:28 +02:00
2014-07-09 10:19:23 +02:00
2014-06-17 17:06:47 +02:00
2014-07-09 10:19:22 +02:00
2014-07-09 16:53:29 +02:00
2014-06-17 17:06:47 +02:00
2014-06-17 17:06:47 +02:00
2014-06-17 17:06:47 +02:00
2014-07-08 14:20:26 +02:00
2014-06-17 14:06:49 +02:00
2014-07-10 15:27:10 +02:00
2014-06-25 12:22:59 +02:00
2014-08-14 11:34:35 +02:00
2014-07-09 10:19:24 +02:00
2014-07-09 10:19:24 +02:00
2014-07-09 10:21:28 +02:00
2014-07-09 10:19:23 +02:00
2014-07-09 10:19:23 +02:00
2014-07-09 10:19:23 +02:00
2014-07-09 10:19:23 +02:00
2014-07-09 10:19:24 +02:00
2014-08-14 11:34:34 +02:00
2014-08-14 11:34:34 +02:00
2014-07-08 14:20:26 +02:00
2014-06-25 11:26:14 +02:00
2014-06-17 17:06:47 +02:00
2014-07-09 10:19:23 +02:00
2014-06-17 14:06:49 +02:00
2014-06-17 17:06:47 +02:00
2014-08-14 11:34:34 +02:00
2014-06-17 17:06:47 +02:00
2014-07-09 10:19:24 +02:00
2014-06-24 17:47:40 +02:00
2014-05-01 14:18:25 +02:00
2014-04-30 16:40:20 +02:00
2014-07-09 10:19:23 +02:00
2014-07-24 10:38:01 +02:00
2014-07-09 10:19:23 +02:00
2014-07-09 10:19:23 +02:00
2014-07-09 10:19:23 +02:00
2014-05-28 11:34:33 +02:00
2014-08-14 11:34:34 +02:00
2014-07-09 10:19:24 +02:00
2014-07-09 10:19:24 +02:00
2014-08-14 11:34:34 +02:00
2014-06-17 17:06:47 +02:00
2014-08-14 11:34:35 +02:00
2014-07-09 10:21:28 +02:00
2014-06-17 14:06:49 +02:00
2014-08-11 11:59:52 +02:00
2014-06-23 11:52:59 +02:00
2014-06-25 11:26:13 +02:00
2014-06-23 11:54:57 +02:00
2014-08-11 11:59:52 +02:00
2014-06-17 17:06:47 +02:00
2014-06-14 16:46:03 +02:00
2014-07-09 10:19:22 +02:00