This is an automated email from Gerrit.

"Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/6970

-- gerrit

commit e0b4160ae399cb63fc775a408399b67305de42c5
Author: Tomas Vanek <van...@fbl.cz>
Date:   Mon May 9 22:54:59 2022 +0200

    target: fix clang static analyzer warning
    
    Removes Warning:        line 6482, column 12
    1st function call argument is an uninitialized value
    
    Use target ptr directly as checked in previous lines instead of
    dereferencing head->target
    
    Change-Id: I6804b776fd493af71f3098d702f9cdc7acb50151
    Signed-off-by: Tomas Vanek <van...@fbl.cz>

diff --git a/src/target/target.c b/src/target/target.c
index d2dff111a5..8a451883ba 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -6477,7 +6477,7 @@ static int jim_target_smp(Jim_Interp *interp, int argc, 
Jim_Obj *const *argv)
        }
 
        if (target && target->rtos)
-               retval = rtos_smp_init(head->target);
+               retval = rtos_smp_init(target);
 
        return retval;
 }

-- 

Reply via email to