X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fcoredump.c;h=a507fc65f8ae24eb56daa7bf69030835c6238cc3;hb=0f91dd8749c1a1ec308cc645269be92166413e38;hp=cfd3a910d99247785fbeb634bd9de85472694067;hpb=669241a076108e0483d7d8475beaa506106d077e;p=elogind.git diff --git a/src/journal/coredump.c b/src/journal/coredump.c index cfd3a910d..a507fc65f 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@ -239,8 +239,7 @@ int main(int argc, char* argv[]) { p = malloc(9 + COREDUMP_MAX); if (!p) { - log_error("Out of memory."); - r = -ENOMEM; + r = log_oom(); goto finish; }