X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=faf377e506e942f729a2b174c72c709bb9923710;hb=dd0124f6cb6ff7da1ce8be23ec7e1137fe15958d;hp=7438e472fb29415af15294b33c57c9a14310cdb3;hpb=29804cc1e0f37ee34301530fd7f1eb8550be464e;p=elogind.git diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 7438e472f..faf377e50 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -80,6 +80,8 @@ static void svg_header(void) { double h; struct list_sample_data *sampledata_last; + assert(head); + sampledata = head; LIST_FIND_TAIL(link, sampledata, head); sampledata_last = head; @@ -123,6 +125,7 @@ static void svg_header(void) { svg("\n