Commit c2c58cce authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed a segfault handling an invalid tagtype in su_taglist.

darcs-hash:20060908090330-7659e-d4effc1a304db47dca0afe1883dac2e6f999cbb6.gz
parent b60dbee3
......@@ -372,7 +372,7 @@ int tl_gets(tagi_t const lst[], tag_type_t tag, tag_value_t value, ...)
n += tl_get(tt, (void *)t->t_value, lst);
}
#if !defined(NDEBUG)
else if (tt->tt_class->tc_ref_set) {
else if (tt->tt_class && tt->tt_class->tc_ref_set) {
fprintf(stderr, "WARNING: tag %s::%s directly used by tl_gets()\n",
tt->tt_ns, tt->tt_name);
assert(tt->tt_class == ref_tag_class);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment