Skip to content

NewsCache.cc:777: possible | and || mixup ? #1

@dcb314

Description

@dcb314

Source code is

           if ((host =
                 gethostbyname(pHost)) == NULL | host->h_addrtype !=
                AF_INET) {

Maybe better code:

           if ((host = gethostbyname(pHost)) == NULL || host->h_addrtype != AF_INET) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions