bootchart: it's not OK to return -1 from a main program

(cherry picked from commit 4155f7d4be)
This commit is contained in:
Lennart Poettering
2014-10-26 18:23:42 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent ce69069334
commit 704dd9ab74
+2 -2
View File
@@ -346,8 +346,8 @@ int main(int argc, char *argv[]) {
sampledata = new0(struct list_sample_data, 1);
if (sampledata == NULL) {
log_error("Failed to allocate memory for a node: %m");
return -1;
log_oom();
return EXIT_FAILURE;
}
sampledata->sampletime = gettime_ns();