As clang analyzer reports, 't1' assignment in create_tech_info() before the while loop is a dead one. It gets overwritten on the first round of the loop. Further, the assignment might cause NULL dereference if there's no sub targets (even index 0 sub target is NULL).
As clang analyzer reports, 't1' assignment in create_tech_info() before the while loop is a dead one. It gets overwritten on the first round of the loop. Further, the assignment might cause NULL dereference if there's no sub targets (even index 0 sub target is NULL).