summaryrefslogtreecommitdiff
path: root/dso/unix
diff options
context:
space:
mode:
authorBrian Fitzpatrick <fitz@apache.org>2001-11-20 16:31:25 +0000
committerBrian Fitzpatrick <fitz@apache.org>2001-11-20 16:31:25 +0000
commitc951412408fdb863059c01cb878caae81f9b951f (patch)
treefcf5a11face61afeeacd711bf628807d1d7b6b70 /dso/unix
parent4ea31ed677bedaa8e48ece0ba09b9fc3b3325cae (diff)
downloadapr-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.c2
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";