quakeworld: fix issue found by PVS Studio (V529)
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Thu, 24 May 2018 18:01:23 +0000 (18:01 +0000)
committerAnders Broman <a.broman58@gmail.com>
Sat, 26 May 2018 05:58:42 +0000 (05:58 +0000)
Odd semicolon ';' after 'for' operator.

Change-Id: If77e285b52291b924efe9e68d863d5f01b994fdd
Reviewed-on: https://code.wireshark.org/review/27785
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-quakeworld.c

index 9be98f918196119f4c88bbe2d67310eba3b56f8e..309d6c18a67c54e7ea17a27133696332e1b4849a 100644 (file)
@@ -251,7 +251,8 @@ dissect_id_infostring(tvbuff_t *tvb, proto_tree* tree,
                        *(keypos + keylength) != '\\' &&
                        *(keypos + keylength) != '\0'
                        ;
-                       keylength++) ;
+                       keylength++)
+               ;
                keyvaluesep = keypos + keylength;
                if (*keyvaluesep == '\0') break;
                valuepos = keyvaluesep+1;
@@ -260,7 +261,8 @@ dissect_id_infostring(tvbuff_t *tvb, proto_tree* tree,
                        *(valuepos + valuelength) != '\\' &&
                        *(valuepos + valuelength) != '\0'
                        ;
-                       valuelength++) ;
+                       valuelength++)
+               ;
                valueend = valuepos + valuelength;
                if (*valueend == '\0') {
                        end_of_info = TRUE;