1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

logging: allow inode/offset params to be NULL

Not all callers of virLogManagerDomainOpenLogFile will
care about getting the current inode/offset, so we should
allow those parameters to be NULL

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2015-12-11 10:58:29 +00:00
parent ab3f1428a6
commit f12bfc5ed5

View File

@ -196,8 +196,10 @@ virLogManagerDomainOpenLogFile(virLogManagerPtr mgr,
goto cleanup;
}
*inode = ret.pos.inode;
*offset = ret.pos.offset;
if (inode)
*inode = ret.pos.inode;
if (offset)
*offset = ret.pos.offset;
rv = fdout[0];
cleanup: