From: Adam Dickmeiss Date: Wed, 14 May 2003 20:58:07 +0000 (+0000) Subject: Fix setting of last event# X-Git-Tag: YAZ.2.0.2.RH.2~26 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=824610960108c45109bf8f458289b281a17db264;p=yaz-moved-to-github.git Fix setting of last event# --- diff --git a/zutil/zoom-c.c b/zutil/zoom-c.c index b2bfeea..29950e8 100644 --- a/zutil/zoom-c.c +++ b/zutil/zoom-c.c @@ -2,7 +2,7 @@ * Copyright (c) 2000-2003, Index Data * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.33 2003-04-29 21:20:34 adam Exp $ + * $Id: zoom-c.c,v 1.34 2003-05-14 20:58:07 adam Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -68,7 +68,10 @@ static ZOOM_Event ZOOM_connection_get_event(ZOOM_connection c) { ZOOM_Event event = c->m_queue_front; if (!event) + { + c->last_event = ZOOM_EVENT_NONE; return 0; + } assert (c->m_queue_back); c->m_queue_front = event->prev; if (c->m_queue_front)