mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
output: obj -- Fix nil dereference if no deps needed
Occasionally sneaked in by f7106d06e4e4865fab2fb704736ab2addc967bd7 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
bfa1ed0ae9
commit
b4e3f11931
@ -1987,7 +1987,7 @@ static void obj_write_file(void)
|
||||
/*
|
||||
* Output file dependency information
|
||||
*/
|
||||
if (!obj_nodepend) {
|
||||
if (!obj_nodepend && depend_list) {
|
||||
list_for_each(depfile, depend_list->head) {
|
||||
uint32_t ts;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user