diff options
| author | Dr. David Alan Gilbert | 2019-04-05 20:40:37 +0200 |
|---|---|---|
| committer | Thomas Huth | 2019-04-08 12:38:07 +0200 |
| commit | c19f2b711e15dac4c2cdbace2f8fb3a45fbed0d2 (patch) | |
| tree | f3c51851c9cf1f0b8d231410aeaec4bc929e7b9b /qapi/misc.json | |
| parent | tests/libqos: fix usage of bool in pci-spapr.c (diff) | |
| download | qemu-c19f2b711e15dac4c2cdbace2f8fb3a45fbed0d2.tar.gz qemu-c19f2b711e15dac4c2cdbace2f8fb3a45fbed0d2.tar.xz qemu-c19f2b711e15dac4c2cdbace2f8fb3a45fbed0d2.zip | |
test qgraph.c: Fix segs due to out of scope default
The test uses the trick:
if (!opts) {
opts = &(QOSGraph...Options) { };
}
in a couple of places, however the temporary created
by the &() {} goes out of scope at the bottom of the if,
and results in a seg or assert when opts-> fields are
used (on fedora 30's gcc 9).
Fixes: fc281c802022cb3a73a5
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190405184037.16799-1-dgilbert@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'qapi/misc.json')
0 files changed, 0 insertions, 0 deletions
