journal-remote: fix check if realloc failed

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-08-31 23:25:30 +02:00
parent 5bb14c8651
commit e4c38cc36e
+1 -1
View File
@@ -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 {