On Wednesday 18 April 2007 20:39, Hans Leidekker wrote:
+static int resolver_initialised;
Shouldn't that be
static int resolver_initilised = 0;
here? I thought that in C, ints aren't initialized to 0 automatically.
+/* call res_init() just once because of a bug in Mac OSX 10.4 */ +static void initialise_resolver( void ) +{
- if (!resolver_initialised)
- {
res_init();
resolver_initialised = 1;
- }
+}
Cheers, Kai