Wireshark-commits: [Wireshark-commits] rev 54791: /trunk/epan/dissectors/ /trunk/epan/dissectors/:

Date: Tue, 14 Jan 2014 17:44:21 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=54791

User: alagoutte
Date: 2014/01/14 05:44 PM

Log:
 Fix -Wsometimes-uninitialized found by Clang
 
 packet-pdcp-lte.c:1397:9: error: variable 'decrypted_data' is used uninitialized whenever 'if' condition is false
 packet-pdcp-lte.c:1469:50: note: uninitialized use occurs here
     decrypted_tvb = tvb_new_child_real_data(tvb, decrypted_data, payload_length, payload_length);
 packet-pdcp-lte.c:1353:27: note: initialize the variable 'decrypted_data' to silence this warning
 
 packet-pdcp-lte.c:1397:9: error: variable 'payload_length' is used uninitialized whenever 'if' condition is false
 packet-pdcp-lte.c:1469:66: note: uninitialized use occurs here
     decrypted_tvb = tvb_new_child_real_data(tvb, decrypted_data, payload_length, payload_length);
 packet-pdcp-lte.c:1354:24: note: initialize the variable 'payload_length' to silence this warning

Directory: /trunk/epan/dissectors/
  Changes    Path                 Action
  +2 -2      packet-pdcp-lte.c    Modified