From b75b5e6613413645f03312d8d5c3033588d81e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Thu, 25 Oct 2001 21:22:49 +0000 Subject: [PATCH] fix double close() issue git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@701 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- src/rig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rig.c b/src/rig.c index 56e7f34ff..f7ca943df 100644 --- a/src/rig.c +++ b/src/rig.c @@ -12,7 +12,7 @@ * Hamlib Interface - main file * Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton * - * $Id: rig.c,v 1.46 2001-10-16 21:18:02 f4cfe Exp $ + * $Id: rig.c,v 1.47 2001-10-25 21:22:49 f4cfe Exp $ * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -545,6 +545,8 @@ int rig_close(RIG *rig) remove_opened_rig(rig); + rs->comm_state = RIG_COMM_NOTOPEN; + return RIG_OK; }