From: Kurt Zeilenga Date: Mon, 2 Oct 2000 17:53:50 +0000 (+0000) Subject: Initialize globals as some linkers don't support shared, uninitialized X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1833 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c63a944ebe70c4b3cbf65661539df7df2d1ce0c;p=openldap Initialize globals as some linkers don't support shared, uninitialized data segments. --- diff --git a/libraries/liblber/bprint.c b/libraries/liblber/bprint.c index f8794e8558..df1be029da 100644 --- a/libraries/liblber/bprint.c +++ b/libraries/liblber/bprint.c @@ -21,12 +21,12 @@ * we set ber_pvt_err_file to stderr later, when it first gets * referenced. */ -FILE *ber_pvt_err_file; +FILE *ber_pvt_err_file = NULL; /* * ber errno */ -BER_ERRNO_FN ber_int_errno_fn; +BER_ERRNO_FN ber_int_errno_fn = NULL; int * ber_errno_addr(void) {