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:
parent
ab3f1428a6
commit
f12bfc5ed5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user