summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bootchart/svg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index 8121199529..bf6636cab1 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;