diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 11cb79263..cdd37608e 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -189,7 +189,7 @@ static char *next_symbol(struct rtos *os, char *cur_symbol, uint64_t cur_addr) int rtos_qsymbol(struct connection *connection, char *packet, int packet_size) { int rtos_detected = 0; - uint64_t addr; + uint64_t addr = 0; size_t reply_len; char reply[GDB_BUFFER_SIZE], cur_sym[GDB_BUFFER_SIZE / 2] = "", *next_sym; struct target *target = get_target_from_connection(connection);