Search
SailfishOS Open Build Service
>
Projects
>
home:kimmoli
:
onyx_test2
>
systemd
> _service:tar_git:systemd-208-bootchart-svg-fix-checking-of-list-end.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:systemd-208-bootchart-svg-fix-checking-of-list-end.patch of Package systemd
From c1682f17a0c966988e865c649e565dae41abf32d Mon Sep 17 00:00:00 2001 From: Aaro Koskinen <aaro.koskinen@nokia.com> Date: Tue, 24 Feb 2015 18:32:31 +0200 Subject: [PATCH] bootchart: svg: fix checking of list end If we have less samples than expected, systemd-bootchart will crash. --- src/bootchart/svg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 93b4764..e1fc531 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -1167,7 +1167,7 @@ static void svg_ps_bars(void) { ps->sample = ps->sample->next; sample_hz = ps->sample; - for (ii=0;((ii<(int)arg_hz/2)&&(ps->sample->next));ii++) + for (ii=0;((ii<(int)arg_hz/2)&&(sample_hz->next));ii++) sample_hz = sample_hz->next; /* subtract bootchart cpu utilization from total */ -- 1.9.1