summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authorfitz <fitz@13f79535-47bb-0310-9956-ffa450edef68>2001-11-20 16:31:25 +0000
committerfitz <fitz@13f79535-47bb-0310-9956-ffa450edef68>2001-11-20 16:31:25 +0000
commit881f0f7747104343b326512bc6bee4ff5691a812 (patch)
treefcf5a11face61afeeacd711bf628807d1d7b6b70 /dso
parentb45839608e00a0daf0bd09ffae607ad0f925aada (diff)
downloadlibapr-881f0f7747104343b326512bc6bee4ff5691a812.tar.gz
(apr_dso_load) initialize os_handle to NULL to stop apr_dso_load from returning false positives.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-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";