chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d64e14
)
bootchart: svg: fix checking of list end
author
Aaro Koskinen
<aaro.koskinen@nokia.com>
Tue, 24 Feb 2015 16:32:31 +0000
(18:32 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 25 Feb 2015 04:51:55 +0000
(23:51 -0500)
If we have less samples than expected, systemd-bootchart will crash.
src/bootchart/svg.c
patch
|
blob
|
history
diff --git
a/src/bootchart/svg.c
b/src/bootchart/svg.c
index 93b4764ee736fc28b9b7fe30b06acf0f03d83bff..e1fc531ba9288661f59b20aa655494f96a5e5cc2 100644
(file)
--- 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 */