Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at proto.c:673

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

prefix_equal

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.c)expand/collapse
Show more  
 662  prefix_equal (gconstpointer ap,gconstpointer bp) {
 663          const gchar* a = ap;
 664          const gchar* b = bp;
 665           
 666          do {
 667                  gchar ac = *a++;
 668                  gchar bc = *b++;
 669                   
 670                  if ((ac == '.' || ac == '\0') && (bc == '.' || bc == '\0')) return TRUE;
 671                   
 672                  if ( (ac == '.' || ac == '\0') && ! (bc == '.' || bc == '\0') ) return FALSE;
 673                  if ( (bc == '.' || bc == '\0') && ! (ac == '.' || ac == '\0') ) return FALSE;
 674                   
 675                  if (ac != bc) return FALSE;
 676          } while(1);
 677           
 678          return FALSE;
 679  }
Show more  




Change Warning 3499.29393 : Redundant Condition

Because they are very similar, this warning shares annotations with warning 3499.29395.

Priority:
State:
Finding:
Owner:
Note: