summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Tian <puling.tyq@alibaba-inc.com>2015-08-07 00:40:20 +0800
committerJames M Snell <jasnell@gmail.com>2015-08-06 13:06:22 -0400
commit8e539dc26dd811c960a8943b28c4a351aa5d89ad (patch)
tree0b16ef0f5e6953ebe1d1048a935afcf8bf7ca7e8
parent75ceaa0d5ee1ae4bec6e9796e406aa2b31c2e8b5 (diff)
downloadnode-8e539dc26dd811c960a8943b28c4a351aa5d89ad.tar.gz
src: make udp_wrap.cc pass the cpplint
PR-URL: https://github.com/joyent/node/pull/25818 Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--src/udp_wrap.cc2
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);