-
- Downloads
secret: Fix passing pointers to libvirt APIs
Inspired by one of previous commits, we can not assume that an
array passed to an API has any items, thus getting its pointer to
pass to C API like this: "&array[0]" may lead to a runtime error.
If that's the case, pass nil instead.
Signed-off-by:
Michal Privoznik <mprivozn@redhat.com>
Please register or sign in to comment