]> git.ipfire.org Git - thirdparty/make.git/commit
Don't free uninitialized hash_table
authorPaul Smith <psmith@gnu.org>
Sun, 1 Jan 2023 14:44:59 +0000 (09:44 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 1 Jan 2023 22:05:12 +0000 (17:05 -0500)
commitccbaf3861de8a8e8f5bd5b544e860736f04e2eec
tree72775c84d71ac730d77f32b12a56d1cebf632803
parentc4fbfe8b5e817c48a8560a7c8582dae9922168ea
Don't free uninitialized hash_table

* src/dir.c (clear_directory_contents): We use ht_vec to mark when
we have initialized the hash_table: don't free if it's NULL.
(everywhere): Use NULL instead of 0 when working with pointers.
src/dir.c