Skip to content

Commit

Permalink
initialize result
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
  • Loading branch information
kkaempf committed Dec 10, 2024
1 parent d7f11b4 commit 1e3be11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions swig/cmpi_types.i
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ Python for compatibility */
)
{
Target_Type tdata;
Target_Type result;
Target_Type result = Target_Null;
CMPIString *s = NULL;
CMPIStatus st = { CMPI_RC_OK, NULL };
CMPIData data;
Expand All @@ -1742,12 +1742,13 @@ Python for compatibility */
if (st.rc)
{
RAISE_IF(st);
result = Target_Null;
Target_INCREF(result);
return result;
}
if (s)
name = CMGetCharPtr(s);
else
return result;
TARGET_THREAD_BEGIN_BLOCK;
tdata = data_data(&data);
#if defined (SWIGPYTHON)
Expand Down

0 comments on commit 1e3be11

Please sign in to comment.