Skip to content

Commit d28fd95

Browse files
committed
[nrf fromlist] debug: coresight: cs_trace_defmt: Fix uninitialized variable warning
In certain configurations there could be a warning due to potential use of uninitialized variable. Add initialization. Upstream PR #: 107183 Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
1 parent 2126a98 commit d28fd95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

subsys/debug/coresight/cs_trace_defmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int cs_trace_defmt_process(const uint8_t *data, size_t len)
2525

2626
uint8_t aux = data[15];
2727
uint8_t d_id;
28-
uint8_t cb_id;
28+
uint8_t cb_id = 0;
2929
bool do_cb = false;
3030

3131
for (int i = 0; i < 8; i++) {

0 commit comments

Comments
 (0)