]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
audiod: Avoid reading garbage in get_time_string().
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 21 Apr 2017 20:35:37 +0000 (22:35 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 21 Apr 2017 20:58:10 +0000 (22:58 +0200)
If no writer is active, wstime is not initialized. Yet we check
whether wstime.tv_sec == 0.

Introduce a helper variable to avoid reading garbage. This also
improves readability.

Found by the clang static analyzer.


No differences found