Task #9993 - added.err
back to task #9993download
Error: CPPCHECK_WARNING (CWE-398):
avahi-0.9.rc1-build/avahi-0.9.rc1/examples/client-publish-service.c:135: style[clarifyCondition]: Suspicious condition (assignment + comparison); Clarify expression with parentheses.
# 133|
# 134| /* Add an additional (hypothetic) subtype */
# 135|-> if ((ret = avahi_entry_group_add_service_subtype(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, "_magic._sub._printer._tcp") < 0)) {
# 136| fprintf(stderr, "Failed to add subtype _magic._sub._printer._tcp: %s\n", avahi_strerror(ret));
# 137| goto fail;