stats_tree: re-indent else for avoid warning found by PVS Studio (V705)
It is possible that 'else' block was forgotten or commented out, thus altering the program's operation logics Change-Id: Ie246592282bd0791021159f90b4b8aeb92cff86f Reviewed-on: https://code.wireshark.org/review/12333 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
f00af593b9
commit
21ac94a323
|
@ -725,16 +725,18 @@ get_range(char *rngstr)
|
|||
/* string == "X-?" */
|
||||
if (*(split[0]) != '\0') {
|
||||
rng->floor = (gint)strtol(split[0],NULL,10);
|
||||
} else
|
||||
/* string == "-?" */
|
||||
rng->floor = G_MININT;
|
||||
} else {
|
||||
/* string == "-?" */
|
||||
rng->floor = G_MININT;
|
||||
}
|
||||
|
||||
/* string != "?-" */
|
||||
if (*(split[1]) != '\0') {
|
||||
if (*(split[1]) != '\0') {
|
||||
rng->ceil = (gint)strtol(split[1],NULL,10);
|
||||
} else
|
||||
/* string == "?-" */
|
||||
rng->ceil = G_MAXINT;
|
||||
} else {
|
||||
/* string == "?-" */
|
||||
rng->ceil = G_MAXINT;
|
||||
}
|
||||
}
|
||||
g_strfreev(split);
|
||||
|
||||
|
|
Loading…
Reference in New Issue