Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Wed, 3 Jul 2013 16:45:33 +0000 (16:45 -0000)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Wed, 3 Jul 2013 16:45:33 +0000 (16:45 -0000)
svn path=/trunk/; revision=50364

epan/dissectors/packet-pnrp.c

index 8b5940f614a1b39fb894921c26311060632df3ed..a5ae14c035dfd78b5b815ba57d235a0e274a8b89 100644 (file)
@@ -378,7 +378,6 @@ static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
     /* Assign Values to Variables */
     /* Use to track data */
     offset= 0;
-    padding_bytes = 0;
     /* Get the message Information beforehand */
     message_type = tvb_get_guint8(tvb,7);
 
@@ -980,7 +979,7 @@ static void dissect_encodedCPA_structure(tvbuff_t *tvb, gint offset, gint length
         offset += tvb_get_letohs(tvb,offset);
         /* Signature */
         dissect_signature_structure(tvb, offset,tvb_get_letohs(tvb,offset),pnrp_encodedCPA_tree);
-        offset += tvb_get_letohs(tvb,offset);
+        /*offset += tvb_get_letohs(tvb,offset);*/
     }
 }
 static void dissect_payload_structure(tvbuff_t *tvb, gint offset, gint length, proto_tree *tree)