From 824610960108c45109bf8f458289b281a17db264 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 14 May 2003 20:58:07 +0000 Subject: [PATCH] Fix setting of last event# --- zutil/zoom-c.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 1.7.10.4