]> git.proxmox.com Git - mirror_qemu.git/commit - qga/main.c
qga: copy argument strings
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 26 Aug 2015 23:34:52 +0000 (01:34 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 1 Sep 2015 16:07:10 +0000 (11:07 -0500)
commit2e38d9903be28493ccd6de4a55e5226e9f07dea9
treec60e0d98d66c4fc157124ad5efa0cbf229683469
parent44de156ca7bfaf899745291a0d603d4f7550f5ea
qga: copy argument strings

Following patch will return allocated strings, so we must correctly
initialize alloc & free them. The nice side effect is that we no longer
have to check for "fixed_state_dir" to call ga_install_service() with a
NULL state dir. The default values are set after parsing the command
line options.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/main.c