From 59634c91ec08c1f1f0f3d1c5af985b7b381cb1ac Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 23 Jun 2008 17:35:08 +0200 Subject: smbd: untangle logic in smbd_messaging_context() slightly. Michael (This used to be commit fae4c21b14b9d288e06f6b4b4e1527e2c6d58dca) --- source3/smbd/server.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/smbd/server.c') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index ed07e5c02b..4a0e60a8d7 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -90,8 +90,11 @@ struct messaging_context *smbd_messaging_context(void) { static struct messaging_context *ctx; - if (!ctx && !(ctx = messaging_init(NULL, server_id_self(), - smbd_event_context()))) { + if (ctx == NULL) { + ctx = messaging_init(NULL, server_id_self(), + smbd_event_context()); + } + if (ctx == NULL) { DEBUG(0, ("Could not init smbd messaging context.\n")); } return ctx; -- cgit