Alfred Klomp
d6d5ef2f0d
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-10-23 15:36:33 +02:00
..
2012-11-17 00:04:49 +01:00
2014-07-08 18:28:52 +02:00
2013-06-12 16:57:46 +02:00
2011-12-10 21:55:01 +00:00
2014-07-08 18:28:29 +02:00
2014-07-08 18:29:06 +02:00
2014-07-08 18:28:52 +02:00
2013-06-12 16:57:46 +02:00
2014-07-08 18:28:52 +02:00
2011-03-08 13:58:16 +00:00
2014-07-08 20:17:07 +02:00
2014-07-08 18:28:52 +02:00
2014-07-11 11:26:03 +02:00
2014-07-08 20:17:07 +02:00
2014-07-08 18:28:48 +02:00
2014-07-08 18:28:52 +02:00
2014-07-08 18:28:52 +02:00
2012-11-02 10:59:36 +00:00
2014-07-08 20:17:07 +02:00
2014-07-08 11:20:25 +02:00
2014-07-08 20:17:07 +02:00
2011-11-27 21:07:34 +00:00
2014-07-07 14:13:54 +02:00
2014-07-08 18:28:52 +02:00
2014-07-08 18:28:52 +02:00
2014-07-08 18:28:52 +02:00
2014-07-08 20:17:07 +02:00
2014-07-08 18:28:52 +02:00
2014-10-23 15:23:48 +02:00
2014-07-08 18:29:00 +02:00
2013-06-14 12:06:45 +02:00
2014-07-08 18:28:52 +02:00
2014-10-23 15:34:02 +02:00
2012-11-14 12:14:19 +00:00
2013-06-18 16:35:48 +02:00
2014-07-08 18:28:40 +02:00
2014-07-08 18:28:52 +02:00
2014-07-08 18:28:52 +02:00
2014-07-08 18:28:52 +02:00
2013-03-06 18:01:03 +01:00
2014-10-23 14:58:09 +02:00
2014-07-08 18:28:47 +02:00
2014-10-23 15:29:55 +02:00
2014-10-23 15:36:33 +02:00
2010-07-18 20:36:00 +00:00
2014-10-23 15:13:39 +02:00
2014-07-08 20:17:07 +02:00
2013-06-12 16:57:46 +02:00