diff options
author | Jeff Cody <jcody@redhat.com> | 2017-11-07 17:27:22 -0500 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2017-12-18 15:42:07 -0500 |
commit | 2d25964d1831c99d54981e8b615eba5dd6a63e36 (patch) | |
tree | 3d9923135efc03c32075b55362d773e44fe900a4 /hw/ssi/mss-spi.c | |
parent | d507c5f682d23a60a356a081557ceb34ea0d2669 (diff) |
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 'hw/ssi/mss-spi.c')
0 files changed, 0 insertions, 0 deletions