Skip to content

Commit 7b3fb22

Browse files
committed
typo in node_http_parser
1 parent 6bb9868 commit 7b3fb22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_http_parser.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct StringPtr {
148148
void Update(const char* str, size_t size) {
149149
if (str_ == NULL)
150150
str_ = str;
151-
else if (on_heap_ || str_ + size != str) {
151+
else if (on_heap_ || str_ + size_ != str) {
152152
// Non-consecutive input, make a copy on the heap.
153153
// TODO Use slab allocation, O(n) allocs is bad.
154154
char* s = new char[size_ + size];

0 commit comments

Comments
 (0)