Skip to content
This repository
Browse code

typo in node_http_parser

  • Loading branch information...
commit c9a231db0e59658be419d926b1dfa17b939ba158 1 parent e5b787e
Isaac Z. Schlueter authored April 17, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/node_http_parser.cc
2  src/node_http_parser.cc
@@ -191,7 +191,7 @@ struct StringPtr {
191 191
   void Update(const char* str, size_t size) {
192 192
     if (str_ == NULL)
193 193
       str_ = str;
194  
-    else if (on_heap_ || str_ + size != str) {
  194
+    else if (on_heap_ || str_ + size_ != str) {
195 195
       // Non-consecutive input, make a copy on the heap.
196 196
       // TODO Use slab allocation, O(n) allocs is bad.
197 197
       char* s = new char[size_ + size];

0 notes on commit c9a231d

Please sign in to comment.
Something went wrong with that request. Please try again.