summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-05-04 13:05:31 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2017-05-05 10:54:39 +0200
commitc71ca057ffb21e064141c15f783e56e257f5c167 (patch)
treebbabab9736df07c89c4cc9103c5b1eb66f306be5 /searchlib
parent08da35a18d3051ea0134c8ce6e86ae9245e962ba (diff)
gcc 7 checks against nullptr where it can.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/bitcompression/pagedict4.h2
-rw-r--r--searchlib/src/vespa/searchlib/common/packets.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/bitcompression/pagedict4.h b/searchlib/src/vespa/searchlib/bitcompression/pagedict4.h
index 3bf7804e63f..f4012a2644b 100644
--- a/searchlib/src/vespa/searchlib/bitcompression/pagedict4.h
+++ b/searchlib/src/vespa/searchlib/bitcompression/pagedict4.h
@@ -572,7 +572,7 @@ public:
uint32_t _l7Ref; // L7 entry before overflow, or self-ref if L6
L7Entry()
- : _l7Word(0),
+ : _l7Word(),
_l7StartOffset(),
_l7WordNum(0),
_l6Offset(0),
diff --git a/searchlib/src/vespa/searchlib/common/packets.cpp b/searchlib/src/vespa/searchlib/common/packets.cpp
index e2025f77e43..be5a9f5ef9d 100644
--- a/searchlib/src/vespa/searchlib/common/packets.cpp
+++ b/searchlib/src/vespa/searchlib/common/packets.cpp
@@ -213,7 +213,7 @@ FS4PersistentPacketStreamer::Encode(FNET_Packet *packet, uint32_t chid, FNET_Dat
FS4Properties::FS4Properties()
: _entries(),
- _name(0),
+ _name(),
_backing()
{ }