diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-08-31 22:54:40 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-08-31 23:25:30 +0200 |
commit | e4c38cc36e287d46a56a98066cc368ee6fdd1968 (patch) | |
tree | b4f546f334fa2fe731511b0cd9fa9065a3e24f30 | |
parent | 5bb14c8651b017983bb9cbd1444969c7a1bda14e (diff) |
journal-remote: fix check if realloc failed
-rw-r--r-- | src/journal-remote/journal-remote-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote-parse.c b/src/journal-remote/journal-remote-parse.c index dfb87d49af..e7eb1516fb 100644 --- a/src/journal-remote/journal-remote-parse.c +++ b/src/journal-remote/journal-remote-parse.c @@ -478,7 +478,7 @@ int process_source(RemoteSource *source, bool compress, bool seal) { char *tmp; tmp = realloc(source->buf, target); - if (tmp) + if (!tmp) log_warning("Failed to reallocate buffer to (smaller) size %zu", target); else { |