On 03/24/2018 12:14 AM, Michal Privoznik wrote:
Due to wrong specification of arguments to getopt_long() any
attempt to set pidfile resulted in:
1) the default to be leaked
2) the @pidfile variable to be set to NULL (because optarg is
NULL without this patch).
Broken since the introduction in commit b855f8d, in 2.11 (documentation
has always mentioned the argument, code has never supported it).
Signed-off-by: Michal Privoznik <mpriv...@redhat.com>
CC: qemu-sta...@nongnu.org
Reviewed-by: Eric Blake <ebl...@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org