Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
typo in node_http_parser
  • Loading branch information
isaacs committed Apr 18, 2012
1 parent da28e3f commit d0a0036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_http_parser.cc
Expand Up @@ -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];
Expand Down

0 comments on commit d0a0036

Please sign in to comment.