Merge pull request #390 from signalwire/apr_filepath

[apr] scan-build: Fix "Argument with 'nonnull' attribute passed null" in file_io/unix/filepath.c
This commit is contained in:
Andrey Volk 2020-02-20 00:40:56 +04:00 committed by GitHub
commit 1fc955be82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
if (rv != APR_SUCCESS)
return errno;
if (!getpath)
return APR_ENOMEM;
/* XXX: Any kernel subject to goofy, uncanonical results
* must run the rootpath against the user's given flags.
* Simplest would be a recursive call to apr_filepath_merge