mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
journal-remote: fix check if realloc failed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user