From 13494d4b605177a8e9e55da8956ba331b50a0b1a Mon Sep 17 00:00:00 2001 From: Krzysztof Kepka Date: Fri, 17 Jan 2020 13:01:44 +0000 Subject: [PATCH] fix: potential null pointer dereference --- src/redfish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/redfish.c b/src/redfish.c index 04e6fc8d8..947fb392e 100644 --- a/src/redfish.c +++ b/src/redfish.c @@ -802,7 +802,8 @@ static void redfish_process_payload_property(const redfish_property_t *prop, if (ds == NULL) continue; - v1.values = &(value_t){0}; + value_t tmp = {0}; + v1.values = &tmp; redfish_convert_val(&value, type, v1.values, ds->ds[0].type); sstrncpy(v1.host, serv->name, sizeof(v1.host)); -- 2.47.2