Added check for idx in get_frame_num().
svn path=/trunk/; revision=24364
This commit is contained in:
parent
ba7b7a0d66
commit
f8a07f7eff
1 changed files with 5 additions and 1 deletions
|
@ -413,10 +413,14 @@ gtk_iostat_packet(void *g, packet_info *pinfo, epan_dissect_t *edt, const void *
|
|||
}
|
||||
|
||||
static guint
|
||||
get_frame_num(io_stat_t *io, int idx, gboolean first)
|
||||
get_frame_num(io_stat_t *io, guint32 idx, gboolean first)
|
||||
{
|
||||
guint i, frame_num=0;
|
||||
|
||||
if (idx>io->num_items) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (first) {
|
||||
frame_num=io->first_frame_num[idx];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue