[riot-notifications] [RIOT] sys/vtimer: initialize all values in get_localtime (#3276)

Hauke Petersen notifications at github.com
Tue Jun 30 13:26:43 CEST 2015


Stumbled upon this when debugging using valgrind on native: valgrind was complaining about some values in the `struct tm` not being proberly initialized (also coverity is complaining about this). Explicitly resetting the struct to zero should prevent errors from random values...
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/3276

-- Commit Summary --

  * sys/vtimer: initialize all values in get_localtime

-- File Changes --

    M sys/vtimer/vtimer.c (3)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/3276.patch
https://github.com/RIOT-OS/RIOT/pull/3276.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3276
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150630/dd34cf25/attachment.html>


More information about the notifications mailing list