Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-13956

mariadb-10.2.9/libmariadb/plugins/pvio/pvio_socket.c:817: strange expression ?

    XMLWordPrintable

    Details

      Description

      mariadb-10.2.9/libmariadb/plugins/pvio/pvio_socket.c:817]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.
      

      Source code is

          while ((gai_rc= getaddrinfo(cinfo->host, server_port,
                                      &hints, &res) == EAI_AGAIN))
      

      Maybe better code

          while ((gai_rc= getaddrinfo(cinfo->host, server_port,
                                      &hints, &res)) == EAI_AGAIN)
      

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            dcb David Binderman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: