From f182c6ae760e3f8d625b050f40956685c3694757 Mon Sep 17 00:00:00 2001 From: liaozy <798389647@qq.com> Date: Wed, 15 Nov 2017 11:35:57 +0800 Subject: [PATCH] fix pcap description is NULL,then return immediately --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/main.cpp diff --git a/src/main.cpp b/src/main.cpp old mode 100644 new mode 100755 index ef870e6..bc8628d --- a/src/main.cpp +++ b/src/main.cpp @@ -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;