diff options
author | Brian Fitzpatrick <fitz@apache.org> | 2001-11-20 16:31:25 +0000 |
---|---|---|
committer | Brian Fitzpatrick <fitz@apache.org> | 2001-11-20 16:31:25 +0000 |
commit | c951412408fdb863059c01cb878caae81f9b951f (patch) | |
tree | fcf5a11face61afeeacd711bf628807d1d7b6b70 /dso/unix | |
parent | 4ea31ed677bedaa8e48ece0ba09b9fc3b3325cae (diff) | |
download | apr-c951412408fdb863059c01cb878caae81f9b951f.tar.gz |
(apr_dso_load) initialize os_handle to NULL to stop apr_dso_load from returning false positives.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/unix')
-rw-r--r-- | dso/unix/dso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c index 4bf6ea3d8..f9786454c 100644 --- a/dso/unix/dso.c +++ b/dso/unix/dso.c @@ -117,7 +117,7 @@ APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle, #elif defined(DSO_USE_DYLD) NSObjectFileImage image; - NSModule os_handle; + NSModule os_handle = NULL; char* err_msg = NULL; if (NSCreateObjectFileImageFromFile(path, &image) != NSObjectFileImageSuccess) { err_msg = "cannot create object file image"; |