Skip to content

Commit

Permalink
lib: CID 1399296: Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_…
Browse files Browse the repository at this point in the history
…MEANT)

Needs to be a comparison, not assignment

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
  • Loading branch information
mwinter-osr committed Feb 7, 2017
1 parent 2088c0c commit 9549668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ funcname_thread_add_read_write (int dir, struct thread_master *m,
#else
if (FD_ISSET (fd, fdset))
{
zlog (NULL, LOG_WARNING, "There is already %s fd [%d]", (dir = THREAD_READ) ? "read" : "write", fd);
zlog (NULL, LOG_WARNING, "There is already %s fd [%d]", (dir == THREAD_READ) ? "read" : "write", fd);
return NULL;
}

Expand Down

0 comments on commit 9549668

Please sign in to comment.