loader: Update secure_getenv usage
authorMark Young <marky@lunarg.com>
Wed, 8 Mar 2017 17:11:52 +0000 (10:11 -0700)
committerMark Young <marky@lunarg.com>
Wed, 8 Mar 2017 17:11:52 +0000 (10:11 -0700)
commit3c1dadb3b5cd6c790207d4826316b787267115f7
tree73599a619b535fec91ae309e9c00fda0c3919eac
parent132b4006d5bd8b34043e8ddec2720e8f935ef852
loader: Update secure_getenv usage

Use secure_getenv always if it's available.  If it's not available,
fall back to getenv (because some libc's, like musl, don't export
secure_getenv).

Change-Id: I0cae57e1048dcbbadbdd9cc71cc17d51706161a0
loader/loader.c