mirror of
https://github.com/curl/curl.git
synced 2025-09-01 09:55:00 +03:00
vquic: use curl_getenv
getenv isn't defined on all platforms, which prevents vquic from building. I specifically ran into this issue building on PlayStation. Closes #18170
This commit is contained in:
parent
4442e06b1f
commit
60587049f7
|
@ -642,7 +642,7 @@ CURLcode Curl_qlogdir(struct Curl_easy *data,
|
|||
size_t scidlen,
|
||||
int *qlogfdp)
|
||||
{
|
||||
const char *qlog_dir = getenv("QLOGDIR");
|
||||
char *qlog_dir = curl_getenv("QLOGDIR");
|
||||
*qlogfdp = -1;
|
||||
if(qlog_dir) {
|
||||
struct dynbuf fname;
|
||||
|
@ -667,6 +667,7 @@ CURLcode Curl_qlogdir(struct Curl_easy *data,
|
|||
*qlogfdp = qlogfd;
|
||||
}
|
||||
curlx_dyn_free(&fname);
|
||||
free(qlog_dir);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user