definition and initialization of tdb_null

Michael Adam ma at
Fri Feb 15 15:21:25 GMT 2008

Hi list,

I was wondering about tdb_null:

I think it should at least be const.
But shouldn't it also be initialized = { NULL, 0 }; ?

Looking at the object file with nm, I see the following types
of symbols for tdb_null:

"B" when not const, not initialized,
"B" when not const,     initialized,
"C" when     const, not initialized,
"R" when     const,     initialized

So I was wondering what is the proper way to go, especially when
putting tdb into a shared library.


Michael Adam <ma at>  <obnox at>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
Url :

More information about the samba-technical mailing list