[kio-extras] [Bug 366763] New: kio-extras-16.07.80/sftp/kio_sftp.cpp:1249]: (style) Suspicious condition

via KDE Bugzilla bugzilla_noreply at kde.org
Sun Aug 14 20:01:03 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=366763

            Bug ID: 366763
           Summary: kio-extras-16.07.80/sftp/kio_sftp.cpp:1249]: (style)
                    Suspicious condition
           Product: kio-extras
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: default
          Assignee: plasma-devel at kde.org
          Reporter: dcb314 at hotmail.com

kio-extras-16.07.80/sftp/kio_sftp.cpp:1249]: (style) Suspicious condition
(assignment + comparison); Clarify expression with parentheses.

Source code is

    } else if ((errorCode = writeToFile(fd, filedata.constData(),
filedata.size()) != 0)) {

Suggest new code
    } else if ((errorCode = writeToFile(fd, filedata.constData(),
filedata.size())) != 0) {



Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Plasma-devel mailing list