X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=135883fb838c813a932ff7fe5cf96fdbfd48f2f3;hb=a2715692e22647428cceba3d4c300a85ddd4fadf;hp=97c8237aaa26e62f446b588ea9878edfdd63c6b3;hpb=4987623d011c534a22a490b17a8e0ec81d1ac30c;p=elogind.git diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 97c8237aa..135883fb8 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