Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at tcap-persistentdata.c:877

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

create_tcaphash_end

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/tcap-persistentdata.c)expand/collapse
Show more  
 857  static struct tcaphash_endcall_t *
 858  create_tcaphash_end(struct tcaphash_end_info_key_t *p_tcaphash_end_key,
 859                      struct tcaphash_context_t *p_tcaphash_context)
 860  {
 861    struct tcaphash_endcall_t *p_tcaphash_endcall1 = NULL;
 862    struct tcaphash_endcall_t *p_tcaphash_endcall = NULL;
 863   
 864    p_tcaphash_endcall1 = (struct tcaphash_endcall_t *)
 865      g_hash_table_lookup(tcaphash_end, p_tcaphash_end_key);
 866   
 867    if (p_tcaphash_endcall1) {
 868      /* Walk through list of transaction with identical keys */
 869      /* go the the end to insert new record */
 870      do {
 871        if (!p_tcaphash_endcall1->next_endcall) {
 872          p_tcaphash_endcall=append_tcaphash_endcall(p_tcaphash_endcall1,
 873                                                     p_tcaphash_context);
 874          break;
 875        }
 876        p_tcaphash_endcall1 = p_tcaphash_endcall1->next_endcall;
 877      } while (p_tcaphash_endcall1 != NULL );
 878    } else {
 879      p_tcaphash_endcall = new_tcaphash_end(p_tcaphash_end_key,
 880                                            p_tcaphash_context);
 881    }
 882    return p_tcaphash_endcall;
 883  }
Show more  




Change Warning 1236.30749 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: