summaryrefslogtreecommitdiff
path: root/src/node_http_parser.cc
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-04-17 19:24:28 -0700
committerisaacs <i@izs.me>2012-04-18 09:36:45 -0700
commit7b3fb22290c3b6acb497ca85cf2f1648d75c8154 (patch)
tree20aba0f75b00e54a6114d954528c2e961cb2d88b /src/node_http_parser.cc
parent6bb9868271640770fe76274df1db8e450bd9c784 (diff)
downloadnode-7b3fb22290c3b6acb497ca85cf2f1648d75c8154.tar.gz
typo in node_http_parser
Diffstat (limited to 'src/node_http_parser.cc')
-rw-r--r--src/node_http_parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index af3729027..b29afe256 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -148,7 +148,7 @@ struct StringPtr {
void Update(const char* str, size_t size) {
if (str_ == NULL)
str_ = str;
- else if (on_heap_ || str_ + size != str) {
+ else if (on_heap_ || str_ + size_ != str) {
// Non-consecutive input, make a copy on the heap.
// TODO Use slab allocation, O(n) allocs is bad.
char* s = new char[size_ + size];