chiark / gitweb /
shared/sparse-endian.h: add missing byteswap.h include
[elogind.git] / src / bootchart / store.c
index ed46a503c672171e397b933e7f47f6a1f6d76bd7..ed683e88d97472fb11c42ea5c55c2dd1cf1ca656 100644 (file)
@@ -399,7 +399,7 @@ schedstat_next:
                         continue;
 
                 ps->sample->next = new0(struct ps_sched_struct, 1);
-                if (!ps->sample) {
+                if (!ps->sample->next) {
                         log_oom();
                         exit(EXIT_FAILURE);
                 }