mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 17:38:42 +00:00
bootchart: it's not OK to return -1 from a main program
This commit is contained in:
Notes:
Lennart Poettering
2014-08-19 20:55:10 +02:00
Backport: bugfix
@@ -380,8 +380,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();
|
||||
|
||||
Reference in New Issue
Block a user