chiark / gitweb /
Fix for SIGSEGV in systemd-bootchart on short-living processes
[elogind.git] / src / bootchart / store.c
old mode 100755 (executable)
new mode 100644 (file)
index f8c97c2..7f86cfe
@@ -275,7 +275,7 @@ schedstat_next:
                         pscount++;
 
                         /* mark our first sample */
-                        ps->first = ps->sample;
+                        ps->first = ps->last = ps->sample;
                         ps->sample->runtime = atoll(rt);
                         ps->sample->waittime = atoll(wt);