| Summary: | sftp/kio_sftp.cpp:1249]: (style) Suspicious condition | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] kio-extras | Reporter: | dcb314 |
| Component: | default | Assignee: | Plasma Development Mailing List <plasma-devel> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.6.5 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Already reported as bug 366763. |
kio-extras-16.04.2/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)) { Maybe better code } else if ((errorCode = writeToFile(fd, filedata.constData(), filedata.size())) != 0) { Reproducible: Always