forked from osmocom/wireshark
byte_view_text.cpp: add initializers to please GCC 7.2.1
Even if a code review suggests that they are not required, it silence 2 compiler warnings. Change-Id: I9ea45dd6759275dd8a2b8fc48fc41d0a9cecbcc2 Reviewed-on: https://code.wireshark.org/review/24942 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
40415fffa3
commit
4bba969698
|
@ -364,8 +364,8 @@ void ByteViewText::drawLine(QPainter *painter, const int offset, const int row_y
|
|||
// ASCII
|
||||
if (show_ascii_) {
|
||||
bool in_non_printable = false;
|
||||
int np_start;
|
||||
int np_len;
|
||||
int np_start = 0;
|
||||
int np_len = 0;
|
||||
for (int tvb_pos = offset; tvb_pos <= max_tvb_pos; tvb_pos++) {
|
||||
/* insert a space every separator_interval_ bytes */
|
||||
if ((tvb_pos != offset) && ((tvb_pos % separator_interval_) == 0)) {
|
||||
|
|
Loading…
Reference in New Issue