chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journalctl: check return of strjoin
[elogind.git]
/
src
/
journal
/
journalctl.c
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index 86895b8f5b86c7cd3aaec07d356d694b534f102a..002ff7cda08d5ad98c52b383cd7122de0672e9f2 100644
(file)
--- a/
src/journal/journalctl.c
+++ b/
src/journal/journalctl.c
@@
-1035,7
+1035,7
@@
int main(int argc, char *argv[]) {
char _cleanup_free_ *copy = NULL;
if (arg_root) {
copy = strjoin(arg_root, "/", CATALOG_DATABASE, NULL);
- if (!
database
) {
+ if (!
copy
) {
r = log_oom();
goto finish;
}