summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/curl_path.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/curl_path.c')
-rw-r--r--libs/libcurl/src/curl_path.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/libcurl/src/curl_path.c b/libs/libcurl/src/curl_path.c
index ba1b717231..b55e83047d 100644
--- a/libs/libcurl/src/curl_path.c
+++ b/libs/libcurl/src/curl_path.c
@@ -18,7 +18,7 @@
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
- * SPDX-License-Identifier: curl
+ * SPDX-License-Identifier: curl AND ISC
*
***************************************************************************/
@@ -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;