bootchart: reset list_sample_data head before generating SVG
authorGianpaolo Macario <gianpaolo_macario@mentor.com>
Sat, 27 Jun 2015 07:17:07 +0000 (07:17 +0000)
committerGianpaolo Macario <gianpaolo_macario@mentor.com>
Sun, 28 Jun 2015 17:30:47 +0000 (17:30 +0000)
commitae87a4a9291e7277b9fe08c97345166118f98623
treee3c3a29ad8617d2d652a14f75ebfd94b7753e668
parent281d4a7710b861559f11023657e661511d524ba0
bootchart: reset list_sample_data head before generating SVG

Until commit 1f2ecb0 ("bootchart: kill a bunch of global variables")
variable "head" was declared global and this action was performed by svg_header.
Now that "head" is local and passed to each function called by svg_do(...)
move the code at the beginning of svg_do(...) to restore the correct behaviour.
src/bootchart/svg.c