From 8e539dc26dd811c960a8943b28c4a351aa5d89ad Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Fri, 7 Aug 2015 00:40:20 +0800 Subject: src: make udp_wrap.cc pass the cpplint PR-URL: https://github.com/joyent/node/pull/25818 Reviewed-By: James M Snell --- src/udp_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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); -- cgit v1.2.1