Wireshark-commits: [Wireshark-commits] master 1a9f3b8: tvbuff: fix compilation with gcc-4.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 20 Apr 2018 10:48:36 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1a9f3b8f6d65b50c0eaa78bde29ca50708900178
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

1a9f3b8 by Dario Lombardo (lomato@xxxxxxxxx):

    tvbuff: fix compilation with gcc-4.
    
    ../epan/tvbuff.c: In function 'tvb_new_octet_aligned':
    ../epan/tvbuff.c:274:26: error: 'abs_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       *rem_len = tvb->length - *offset_ptr;
                              ^
    ../epan/tvbuff.c:486:8: note: 'abs_offset' was declared here
      guint abs_offset, rem_length;
            ^
    ../epan/tvbuff.c: In function 'tvb_find_line_end':
    ../epan/tvbuff.c:274:26: error: 'abs_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       *rem_len = tvb->length - *offset_ptr;
                              ^
    ../epan/tvbuff.c:486:8: note: 'abs_offset' was declared here
      guint abs_offset, rem_length;
            ^
    ../epan/tvbuff.c: In function 'tvb_find_line_end_unquoted':
    ../epan/tvbuff.c:274:26: error: 'abs_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       *rem_len = tvb->length - *offset_ptr;
                              ^
    ../epan/tvbuff.c:486:8: note: 'abs_offset' was declared here
      guint abs_offset, rem_length;
    
    Change-Id: Iba9fe31ac5fcf604d65bbf3bceef0c09004c1b6c
    Reviewed-on: https://code.wireshark.org/review/27050
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  89ff407   QUIC: implement new header formats (draft -11)
    adds  1a9f3b8   tvbuff: fix compilation with gcc-4.


Summary of changes:
 epan/tvbuff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)