Wireshark-commits: [Wireshark-commits] master 0ae769a: IEEE 802.15.4: fix uninitialized variable wa

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 09 Mar 2018 04:45:09 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0ae769adc10a97dfd2114d747094881ca7870b87
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

0ae769a by Peter Wu (peter@xxxxxxxxxxxxx):

    IEEE 802.15.4: fix uninitialized variable warning
    
    "status" is set by decrypt_ieee802154_payload, but GCC 7.3 is unaware:
    
        epan/dissectors/packet-ieee802154.c: In function 'ieee802154_decrypt_payload':
        epan/dissectors/packet-ieee802154.c:1912:9: error: 'status' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                 switch (status) {
                 ^~~~~~
    
    Change-Id: Ia66e6a80f277470f8b242107275ea7467c37e212
    Reviewed-on: https://code.wireshark.org/review/26372
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  ea754b6   Plug a leak.
    adds  0ae769a   IEEE 802.15.4: fix uninitialized variable warning


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