From 5f0838457215ca435ac08aa03f26142b7a0e8189 Mon Sep 17 00:00:00 2001 From: Philipp Dunkel Date: Thu, 5 Dec 2013 16:08:43 +0100 Subject: [PATCH] Changes as not to leak readLine into global --- lib/memcache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/memcache.js b/lib/memcache.js index 8b826ad..078cfd6 100644 --- a/lib/memcache.js +++ b/lib/memcache.js @@ -337,7 +337,7 @@ Client.prototype.handle_error = function(buffer){ return [null, (line.length + crlf_len), line]; }; -readLine = function(string){ +function readLine(string){ var line_len = string.indexOf(crlf); return string.substr(0, line_len); };