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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.