Browse files

Use an empty filter if none was specified

  • Loading branch information...
1 parent b6ac3fd commit f439965dc62015e61868af275e6437cc96a446f0 @mattstevens mattstevens committed Aug 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 pcap.js
View
2 pcap.js
@@ -27,7 +27,7 @@ Pcap.prototype.open_live = function (device, filter) {
var me = this;
this.device_name = device || binding.default_device();
- this.link_type = binding.open_live(this.device_name, filter);
+ this.link_type = binding.open_live(this.device_name, filter || "");
this.fd = binding.fileno();
this.opened = true;
this.readWatcher = new process.IOWatcher();

0 comments on commit f439965

Please sign in to comment.