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=97c8237aaa26e62f446b588ea9878edfdd63c6b3;hpb=4987623d011c534a22a490b17a8e0ec81d1ac30c;p=elogind.git diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 97c8237aa..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