diff options
-rw-r--r-- | src/udp_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index 390826c3f..4619ab1e1 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -450,7 +450,7 @@ void UDPWrap::OnRecv(uv_udp_t* handle, base = static_cast<char*>(realloc(buf->base, nread)); // If realloc fails, fallback to old pointer // safe since we are always shrinking the buffer - if(base == NULL) + if (base == NULL) base = buf->base; } else { free(buf->base); |