coverity bug 43

svn path=/trunk/; revision=17624
This commit is contained in:
Ronnie Sahlberg 2006-03-14 07:38:43 +00:00
parent 8d92765c4b
commit c1aa2aef89
1 changed files with 4 additions and 1 deletions

View File

@ -3170,7 +3170,10 @@ tbl_type(guint n, GNode *pdu, GNode *list, guint fullindex) /* indent, pdu, sour
case TBL_TYPEREF: { /* may have a tag ... */
TypeRef *tr;
guint i;
if ( q && (((TBLTag *)q->data)->type == TBLTYPE_Tag)) {
if(!q){
break;
}
if ( ((TBLTag *)q->data)->type == TBLTYPE_Tag) {
if ((p->flags & PDU_IMPLICIT) == 0) { /* not implicit, use this tag */
p->tclass = ((TBLTag *)q->data)->tclass;
p->tag = ((TBLTag *)q->data)->code;