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