Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9973

Several examples aren't correctly checking mq_open() return value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • TIRTOS
    • TIRTOS-2022
    • TIRTOS_4_30_00
    • TIRTOS_5_30_00
    • Hide
      CC13x2
      CC26x2
      MSP432E4
      Show
      CC13x2 CC26x2 MSP432E4

      mq_open() returns a descriptor in case of success, or -1 in case of failure (with errno set to a relevant error code).

      Some examples incorrectly check if the return code is NULL (which is not a valid return code). The error check should instead be for (rc <= 0).

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: