chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
log.h: new log_oom() -> int -ENOMEM, use it
[elogind.git]
/
src
/
journal
/
journalctl.c
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index a9cf9cd957445441b045b345b3ca22a89e1a74f5..c924afbccc8953273509f045bdb38ee95f41ce18 100644
(file)
--- a/
src/journal/journalctl.c
+++ b/
src/journal/journalctl.c
@@
-256,8
+256,7
@@
static int add_matches(sd_journal *j, char **args) {
t = strappend("_EXE=", path);
if (!t) {
free(p);
- log_error("Out of memory.");
- return -ENOMEM;
+ return log_oom();
}
r = sd_journal_add_match(j, t, 0);