mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
[apr] scan-build: Fix "Argument with 'nonnull' attribute passed null" in file_io/unix/filepath.c
This commit is contained in:
parent
ffaa7e6c7d
commit
05377622af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user