mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
parent
bdaa6dd5ba
commit
025bad1182
@ -122,7 +122,8 @@ CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir)
|
||||
bool relativePath = false;
|
||||
static const char WHITESPACE[] = " \t\r\n";
|
||||
|
||||
if(!*cp) {
|
||||
DEBUGASSERT(homedir);
|
||||
if(!*cp || !homedir) {
|
||||
*cpp = NULL;
|
||||
*path = NULL;
|
||||
return CURLE_QUOTE_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user