static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typename,
struct symt** ret_dt)
{
- static struct symt null_dt = {SymTagNull};
int idx;
long sz = -1;
- struct symt* new_dt = &null_dt; /* newly created data type */
+ struct symt* new_dt = NULL; /* newly created data type */
struct symt* ref_dt; /* referenced data type (pointer...) */
long filenr1, subnr1, tmp;
while (*ptd->ptr == '=')
{
ptd->ptr++;
- PTS_ABORTIF(ptd, new_dt->tag != SymTagNull);
+ PTS_ABORTIF(ptd, new_dt != NULL);
/* first handle attribute if any */
switch (*ptd->ptr)