From 8258e03b8aca7dd78c650b6461e240e3f22cb8dd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 2 Feb 2005 20:25:37 +0000 Subject: [PATCH] Fix statserv_getcontrol for non-threaded YAZ --- src/statserv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/statserv.c b/src/statserv.c index 6a685b8..d63e349 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -5,7 +5,7 @@ * NT threaded server code by * Chas Woodfield, Fretwell Downing Informatics. * - * $Id: statserv.c,v 1.20 2005-02-01 14:46:47 adam Exp $ + * $Id: statserv.c,v 1.21 2005-02-02 20:25:37 adam Exp $ */ /** @@ -988,7 +988,9 @@ statserv_options_block *statserv_getcontrol(void) else return &control_block; #else - return current_control_block; + if (current_control_block) + return current_control_block; + return &control_block; #endif } -- 1.7.10.4