From 4144e0c7ffc23de9f850128bf0dc4903ebaa446d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 4 Jan 2018 08:50:26 -0800 Subject: [PATCH] Cleanup: bail on error Coverity CID 207809 Signed-off-by: Dirk Hohndel --- src/suunto_eonsteel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/suunto_eonsteel.c b/src/suunto_eonsteel.c index d82da44..db272d0 100644 --- a/src/suunto_eonsteel.c +++ b/src/suunto_eonsteel.c @@ -480,6 +480,7 @@ static int get_file_list(suunto_eonsteel_device_t *eon, struct directory_entry * sizeof(result), result); if (rc < 0) { ERROR(eon->base.context, "cmd DIR_LOOKUP failed"); + return -1; } HEXDUMP(eon->base.context, DC_LOGLEVEL_DEBUG, "DIR_LOOKUP", result, rc);