[Pkg-javascript-commits] [node-cipher-base] 07/13: index: add missing Buffer.alloc

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 12 21:30:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-cipher-base.

commit 2397a9e0db33b2f3d6abbd89f01db1c066804a91
Author: Daniel Cousens <dcousens at users.noreply.github.com>
Date:   Thu Jul 6 18:29:07 2017 +1000

    index: add missing Buffer.alloc
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 9441800..6728005 100644
--- a/index.js
+++ b/index.js
@@ -73,7 +73,7 @@ CipherBase.prototype._flush = function (done) {
   done(err)
 }
 CipherBase.prototype._finalOrDigest = function (outputEnc) {
-  var outData = this.__final() || new Buffer('')
+  var outData = this.__final() || Buffer.alloc(0)
   if (outputEnc) {
     outData = this._toString(outData, outputEnc, true)
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cipher-base.git



More information about the Pkg-javascript-commits mailing list