X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=135883fb838c813a932ff7fe5cf96fdbfd48f2f3;hb=c2d6bd61ee77b59566116afe6e20513d19945ed4;hp=7438e472fb29415af15294b33c57c9a14310cdb3;hpb=29804cc1e0f37ee34301530fd7f1eb8550be464e;p=elogind.git diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 7438e472f..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