summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-10-16 20:57:26 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-10-17 00:34:19 +0400
commit2bc30f239be3e56d642eda38df98c656d55b4d86 (patch)
tree562716d67952320494e68e2a7b4f08e84016eec1 /src/node_internals.h
parent7063c59b97fa4f365f9e5ec1f563235ede4104db (diff)
downloadnode-new-2bc30f239be3e56d642eda38df98c656d55b4d86.tar.gz
cpplint: disallow if one-liners
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 141bd92ff0..fa3b5d763d 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -91,7 +91,8 @@ inline static int snprintf(char* buf, unsigned int len, const char* fmt, ...) {
va_list ap;
va_start(ap, fmt);
int n = _vsprintf_p(buf, len, fmt, ap);
- if (len) buf[len - 1] = '\0';
+ if (len)
+ buf[len - 1] = '\0';
va_end(ap);
return n;
}