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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Jul 2021 16:25:39 +0000 (18:25 +0200)
commit8624d96e7306868fdf3187a560464feee498a617
treee0653b64cfd2c65088e773c531fab8cef2ae4dca
parent9962f072342f8b5c5c49c09a6792d5b67ed4fdad
test-env-util: use streq_ptr when comparing directly the result of getenv

It might return NULL.

Fixes CID #1453247

(cherry picked from commit 05576809194754989f88f83c7104341c35944546)
src/test/test-env-util.c