chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement SocketUser= and SocketGroup= for [Socket]
[elogind.git]
/
src
/
journal
/
cat.c
diff --git
a/src/journal/cat.c
b/src/journal/cat.c
index cdd46bcf5b7b41e3733faa2a17a83fc648ae3b6c..523a7a2eda39985d00f2cc6b35603ebd0a18b980 100644
(file)
--- a/
src/journal/cat.c
+++ b/
src/journal/cat.c
@@
-91,10
+91,8
@@
static int parse_argv(int argc, char *argv[]) {
arg_identifier = NULL;
else {
arg_identifier = strdup(optarg);
- if (!arg_identifier) {
- log_error("Out of memory.");
- return -ENOMEM;
- }
+ if (!arg_identifier)
+ return log_oom();
}
break;