libxl: properly set default of discard_enable
authorOlaf Hering <olaf@aepfle.de>
Tue, 17 Jun 2014 08:44:40 +0000 (10:44 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 17 Jun 2014 09:08:57 +0000 (10:08 +0100)
commit364c9ee0076d66498c1ae2b2c65833cbe433ceba
tree9fc5dd402a5ea6daa3d19436627d676c9693658d
parent68c69978352adb5ab7c06598056f9eb88d7d6031
libxl: properly set default of discard_enable

Initialze discard_enable properly. This avoids a crash if a
libxl_device_disk with an uninitialized discard_enable is passed to
device_disk_add. Up to now only xl initialized discard_enable in its
config parser. External users of libxl, such as libvirt, do not need to
provide a default value.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxlu_disk.c