X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=93b4764ee736fc28b9b7fe30b06acf0f03d83bff;hb=2eec67acbb00593e414549a7e5b35eb7dd776b1b;hp=a53f98a941fea55d7fe980e144dde85ceb6d9623;hpb=49e5b2a93339869703d581a06f8d903f8371ab60;p=elogind.git diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index a53f98a94..93b4764ee 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -23,14 +23,11 @@ ***/ #include -#include -#include #include #include #include #include #include -#include #include #include "util.h" @@ -39,6 +36,7 @@ #include "svg.h" #include "bootchart.h" #include "list.h" +#include "utf8.h" #define time_to_graph(t) ((t) * arg_scale_x) #define ps_to_graph(n) ((n) * arg_scale_y) @@ -80,6 +78,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 +123,7 @@ static void svg_header(void) { svg("\n