Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at rtp_stream_dlg.c:278

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

rtpstream_on_findrev

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_stream_dlg.c)expand/collapse
Show more  
 259  rtpstream_on_findrev                   (GtkButton       *button _U_,
 260                                          gpointer         user_data _U_)
 261  {
 262          gint row;
 263          gint start_row;
 264          rtp_stream_info_t* pstream = NULL;
 265   
 266          if (selected_stream_fwd==NULL)
 267                  return;
 268          if (selected_stream_rev==NULL) {
 269                  pstream = selected_stream_fwd;
 270          }
 271          else {
 272                  pstream = selected_stream_rev;
 273          }
 274   
 275          start_row = gtk_clist_find_row_from_data(GTK_CLIST(clist), pstream);
 276          row = start_row+1;
 277   
 278          for (row=start_row+1;
 279                  (pstream = gtk_clist_get_row_data(GTK_CLIST(clist), row));
 280                  row++) {
 281                  if (rtp_stream_info_cmp_reverse(selected_stream_fwd, pstream) == 0) {
 282                          gtk_clist_select_row(GTK_CLIST(clist), row, 0);
 283                          gtk_clist_moveto(GTK_CLIST(clist), row, 0, 0.5f, 0);
 284                          return;
 285                  }
 286          }
 287   
 288          /* wrap around */
 289          for (row=0;
 290                  (pstream = gtk_clist_get_row_data(GTK_CLIST(clist), row)) && row<start_row;
 291                  row++) {
 292                  if (rtp_stream_info_cmp_reverse(selected_stream_fwd, pstream) == 0) {
 293                          gtk_clist_select_row(GTK_CLIST(clist), row, 0);
 294                          gtk_clist_moveto(GTK_CLIST(clist), row, 0, 0.5f, 0);
 295                          return;
 296                  }
 297          }
 298   
 299          /* if we didnt find another stream, highlight the current reverse stream */
 300          if (selected_stream_rev!=NULL) {
 301                  gtk_clist_select_row(GTK_CLIST(clist), row, 0);
 302                  gtk_clist_moveto(GTK_CLIST(clist), row, 0, 0.5f, 0);
 303          }
 304  }
Show more  




Change Warning 4419.29717 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: