From e67d470c11668f2a08061ec5fe4571e521ee0b47 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 7 Dec 2007 12:17:35 +0000 Subject: [PATCH] Return success when trying to close a NULL device. --- suunto_vyper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suunto_vyper.c b/suunto_vyper.c index ef63abc..8c7a6e9 100644 --- a/suunto_vyper.c +++ b/suunto_vyper.c @@ -97,7 +97,7 @@ int suunto_vyper_close (vyper *device) { if (device == NULL) - return SUUNTO_VYPER_ERROR; + return SUUNTO_VYPER_SUCCESS; // Close the device. if (serial_close (device->port) == -1) {