diff options
| author | Jeff Cody | 2017-11-07 23:27:22 +0100 |
|---|---|---|
| committer | Jeff Cody | 2017-12-18 21:42:07 +0100 |
| commit | 2d25964d1831c99d54981e8b615eba5dd6a63e36 (patch) | |
| tree | 3d9923135efc03c32075b55362d773e44fe900a4 /include | |
| parent | block/sheepdog: code beautification (diff) | |
| download | qemu-2d25964d1831c99d54981e8b615eba5dd6a63e36.tar.gz qemu-2d25964d1831c99d54981e8b615eba5dd6a63e36.tar.xz qemu-2d25964d1831c99d54981e8b615eba5dd6a63e36.zip | |
block/curl: check error return of curl_global_init()
If curl_global_init() fails, per the documentation no other curl
functions may be called, so make sure to check the return value.
Also, some minor changes to the initialization latch variable 'inited':
- Make it static in the file, for clarity
- Change the name for clarity
- Make it a bool
Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
