ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 36755: /trunk/epan/dissectors/ /trun

From: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Date: Thu, 21 Apr 2011 15:41:18 +0200
On Thu, Apr 21, 2011 at 3:32 PM,  <alagoutte@xxxxxxxxxxxxx> wrote:
>  Fix Dead Store (Dead nested assignment) Warning found by Clang

-					msg_type = tvb_get_ntohs(tvb, (tmp_idx+=2));
+					msg_type = tvb_get_ntohs(tvb, tmp_idx);

Are you sure this is correct?  What about "tmp_idx+2"?


-- 
Stig Bjørlykke