chiark / gitweb /
Fix for SIGSEGV in systemd-bootchart on short-living processes
[elogind.git] / src / bootchart / store.c
index f8c97c2324020d88e337ea19d0f99d7ffab9f0a3..7f86cfe976c77c7e23621f825582f8960b8aa582 100644 (file)
@@ -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);