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:
Cyrill Gorcunov 2018-11-11 21:41:40 +03:00
parent bfa1ed0ae9
commit b4e3f11931

View File

@ -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;