From 27d25afbdc7cac62b1a2952fc615123f4510d340 Mon Sep 17 00:00:00 2001 From: Sigfried Gold Date: Wed, 13 Feb 2013 11:58:50 -0500 Subject: [PATCH] added a line to escape when the file is empty (i think) --- tools/stat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/stat.js b/tools/stat.js index 77c0922..b0d55fb 100644 --- a/tools/stat.js +++ b/tools/stat.js @@ -103,6 +103,8 @@ _(process.argv.slice(2)).filter(function(arg){ lastKey = key; }) .on ("end", function (){ + if (lastKey === null) + return; // add EOF offset offsets[lastKey].push(eofKey);