From 683550b297b48351ca7cf5fe5116ca3751961ffb Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Wed, 21 Feb 2018 09:47:09 -0800 Subject: [PATCH] Don't use nullptr in non C++11 code --- src/sniffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sniffer.cpp b/src/sniffer.cpp index e511f34..0b0d19b 100644 --- a/src/sniffer.cpp +++ b/src/sniffer.cpp @@ -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;