Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at wsp_stat.c:220

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

wspstat_draw

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/wsp_stat.c)expand/collapse
Show more  
 205  wspstat_draw(void *psp)
 206  {
 207          wspstat_t *sp=psp;
 208          guint32 i;
 209          char str[256];
 210          guint index;
 211   
 212          for(i=1;i<=sp->num_pdus ; i++)
 213          {
 214              g_snprintf(str, sizeof(str), "%9d",  sp->pdu_stats[i ].packets);
 215                   gtk_label_set_text( GTK_LABEL(sp->pdu_stats[i].widget), str);
 216          }
 217   
 218          index=sp->index;
 219          g_hash_table_foreach( sp->hash, (GHFunc) wsp_draw_statuscode, NULL );
 220          if (index != sp->index){
 221                  /* We have inserted a new entry corresponding to a status code ,
 222                   * let's resize the table */
 223                  gtk_table_resize ( GTK_TABLE(sp->table_status_code), sp->index  % 2 , 4);
 224          }
 225   
 226  }
Show more  




Change Warning 4674.29578 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: