Skip to content

Commit

Permalink
Use the pointer dereference instead of the pointer.
Browse files Browse the repository at this point in the history
This fixes an obvious typo, since using a pointer comparison in the
condition does not make sense.
  • Loading branch information
Mint committed Aug 2, 2018
1 parent 21ea40f commit bf13bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/procops.c
Expand Up @@ -553,7 +553,7 @@ static void async_read(uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf,
si->last_read = nread;

/* Update permit count, stop reading if we run out. */
if (permit > 0) {
if (*permit > 0) {
(*permit)--;
if (*permit == 0) {
uv_read_stop(handle);
Expand Down

0 comments on commit bf13bb3

Please sign in to comment.