mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Give type data a null pointer.
Pointers to the void type descriptor looked just like null pointers and that was terribly confusing. Avoid that confusion by pre-allocating a small amount of data in order to reserve space for a null descriptor.
This commit is contained in:
parent
e68e6d0858
commit
c585a17db9
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ InitData (void)
|
|||
pr.near_data->grow = 0;
|
||||
|
||||
pr.type_data = new_defspace ();
|
||||
defspace_new_loc (pr.type_data, 4); // reserve space for a null descriptor
|
||||
|
||||
pr.symtab = new_symtab (0, stab_global);
|
||||
pr.symtab->space = pr.near_data;
|
||||
|
|
Loading…
Reference in a new issue