Skip to content

Commit

Permalink
fileFlags was persisted when using fileWrapper more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
felixchan committed Dec 13, 2011
1 parent 82f137a commit bc9e3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mime-magic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var trim = function (string) {
};

var fileWrapper = function (path, cb) {
var flags = JSON.parse(JSON.stringify(fileFlags));
var flags = JSON.parse(JSON.stringify(fileFlags)); //
flags.push(path);
cp.execFile(fileExec, flags, function (err, stdout) {
stdout = stdout.trim();
Expand Down

0 comments on commit bc9e3f3

Please sign in to comment.