test-env-util: use streq_ptr when comparing directly the result of getenv
authorLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 21 May 2021 12:39:24 +0000 (13:39 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 May 2021 18:05:53 +0000 (03:05 +0900)
commit05576809194754989f88f83c7104341c35944546
treef0cdb32ca8ffb364edd8b06aa465f46b9fbaad8f
parentf5e775973a22e10e0813b56cb3e43d5d415979f7
test-env-util: use streq_ptr when comparing directly the result of getenv

It might return NULL.

Fixes CID #1453247
src/test/test-env-util.c