Skip to content

Commit

Permalink
coverity: FORWARD_NULL correct
Browse files Browse the repository at this point in the history
pywbem/cim_obj.py:1843: assign_undefined: Assigning: "kb_assigns" = "undefined".
pywbem/cim_obj.py:1957: property_access: Accessing a property of null-like value "kb_assigns".

Ensure the variable exists and is initialized as a list.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
  • Loading branch information
tasleson authored and andy-maier committed Apr 15, 2024
1 parent be68c1f commit e389423
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pywbem/_cim_obj.py
Expand Up @@ -2052,6 +2052,7 @@ def from_wbem_uri(wbem_uri):
_format("WBEM URI has an invalid format for its keybindings: "
"{0!A}", keybindings_str))

kb_assigns = []
if m.group(1):
kb_assigns = [m.group(1)]

Expand Down

0 comments on commit e389423

Please sign in to comment.