mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
bootchart: it's not OK to return -1 from a main program
(cherry picked from commit 4155f7d4be)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
ce69069334
commit
704dd9ab74
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user