X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Frtos%2Frtos.c;h=cdd37608ed446156ca409fd61405b8427b170ab3;hb=164c543799a6bda0c4a6011f43d825930b36c7fe;hp=11cb79263790058853833429ae51213f50a3a8de;hpb=47d4224d48199e700f7f685c7965a9864dde5f20;p=fw%2Fopenocd 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);