Skip to content

Commit

Permalink
Fix: warning detected via ccc-analyzer
Browse files Browse the repository at this point in the history
misc/ipc_pipe.c
Warning:	line 76, column 8
Although the value stored to 'rr' is used in the enclosing expression, the value is never actually read from 'rr'
  • Loading branch information
jjnicola committed Oct 21, 2022
1 parent 9009246 commit e935e0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/ipc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ ipc_pipe_retrieve (struct ipc_pipe_context *context)
fcntl (rfd, F_SETFL, pf | O_NONBLOCK);
if ((result = calloc (1, IPC_MAX_BUFFER)) == NULL)
return NULL;
if ((rr = read (rfd, result, IPC_MAX_BUFFER)) > 0)
rr = read (rfd, result, IPC_MAX_BUFFER);
if (rr > 0)
{
return result;
}
Expand Down

0 comments on commit e935e0a

Please sign in to comment.