Skip to content

Commit

Permalink
Don't use nullptr in non C++11 code
Browse files Browse the repository at this point in the history
  • Loading branch information
mfontanini committed Feb 21, 2018
1 parent 971fdf7 commit 683550b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sniffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void BaseSniffer::set_extract_raw_pdus(bool value) {
}

void BaseSniffer::set_pcap_sniffing_method(PcapSniffingMethod method) {
if (method == nullptr) {
if (method == 0) {
throw std::runtime_error("Sniffing method cannot be null");
}
pcap_sniffing_method_ = method;
Expand Down

0 comments on commit 683550b

Please sign in to comment.