]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
tal.c: Patch some small bugs
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 17 Apr 2020 16:45:44 +0000 (11:45 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 17 Apr 2020 16:45:44 +0000 (11:45 -0500)
commitf512c54bd8bf2ae6aba4455d09ebad4bda93d17b
tree6478f3700ac031dfb3eae14fcd93735049814c54
parent9f565bbaffffeb1574a4af638b2274b4c7487acb
tal.c: Patch some small bugs

- Code wasn't validating null result on strdup
- If a validation thread was interrupted,
  `perform_standalone_validation()` was reading an uninitalized
  exit status.

More or less as a side effect, I also merged the structures
`pthread_param` and `thread`, because their usage was similar
and shared ~50% of their members.

`do_file_validation()` is no longer responsible for freeing its
generic argument.
src/object/tal.c