Skip to content

Commit

Permalink
fix pcap description is NULL,then return immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuan-liao committed Nov 15, 2017
1 parent eabac9d commit f182c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void list_interfaces()
for (d = alldevs, i = 1; d; d = d->next, i++) {

cout << i << ". "
<< setiosflags(ios_base::left) << setw(40) << d->description
<< setiosflags(ios_base::left) << setw(40) << (char *)((d->description != 0)? d->description:"NULL")
<< "\t[" << d->name << ']' << endl;
}
cout << endl;
Expand Down

0 comments on commit f182c6a

Please sign in to comment.