]> granicus.if.org Git - check/commit
Check for strdup() failures in Check's unit tests
authorBranden Archer <b.m.archer4@gmail.com>
Tue, 19 Jun 2018 20:12:40 +0000 (16:12 -0400)
committerBranden Archer <b.m.archer4@gmail.com>
Wed, 20 Jun 2018 01:01:55 +0000 (21:01 -0400)
commitbcb66f3e32aa0eb23e408a4a3f8eab192c7ae0a0
tree19924152c39c4f76a28d072fb538fa789e2ababc
parent65e8c5e36f2841be16c4c96bae7a7bc171ff7d67
Check for strdup() failures in Check's unit tests

If a strdup() fails a NULL pointer would be passed to
mkstemp(), and it does not accept NULL pointers.

This was discovered using scan-build.
tests/check_check_master.c