X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Frtos%2Fnuttx.c;h=cc352d18008f1e051ea560fcb0884d71beccc0ff;hb=391782318723915bd259eadf9469251c13c8fa9c;hp=00fec7fb764580d6ef5f5b7c95d5dc7572d700a0;hpb=08ee7bb982b16742f52cfdc6c649d82ffa2eb177;p=fw%2Fopenocd diff --git a/src/rtos/nuttx.c b/src/rtos/nuttx.c index 00fec7fb7..cc352d180 100644 --- a/src/rtos/nuttx.c +++ b/src/rtos/nuttx.c @@ -233,7 +233,7 @@ retok: static bool nuttx_detect_rtos(struct target *target) { - if ((target->rtos->symbols != NULL) && + if ((target->rtos->symbols) && (target->rtos->symbols[0].address != 0) && (target->rtos->symbols[1].address != 0)) { return true;