mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
It's possible for json_tokener_parse_verbose() to return NULL and leave the error parameter unset. Initialize the error variable at definition to an existing error token to make sure it's not uninitialized in case of failure. Reported by XenServer internal Coverity instance. Fixes:7e95dab9eb("libxl: Convert libxl__json_parse() to use json-c") Fixes:f6c6f2679d("libxl: Convert libxl__object_to_json() to json-c") Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>