Skip to content

Commit

Permalink
Initialize num_bits in AisMsg::AisMsg. CID 116341. And revert to the …
Browse files Browse the repository at this point in the history
…default C++ compiler.
  • Loading branch information
schwehr committed Jun 19, 2015
1 parent 09c5789 commit a397637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libais/Makefile-custom
@@ -1,6 +1,6 @@
# -*- makefile -*-

CXX:=g++-5
# CXX := c++

CXXFLAGS :=
CXXFLAGS += -std=c++11
Expand Down
2 changes: 1 addition & 1 deletion src/libais/ais.cpp
Expand Up @@ -266,7 +266,7 @@ const char AisBitset::bits_to_char_tbl_[] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ"

AisMsg::AisMsg(const char *nmea_payload, const size_t pad)
: message_id(0), repeat_indicator(0), mmsi(0), status(AIS_UNINITIALIZED),
num_chars(0) {
num_chars(0), num_bits(0) {
assert(nmea_payload);
assert(pad < 6);

Expand Down

0 comments on commit a397637

Please sign in to comment.