From 106904a763ecc4866d8c9fcefa6d6e6f2aa641b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 2 Jul 2018 18:50:13 +0200 Subject: [PATCH] Fixed FIT parser crash --- src/data/fitparser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/fitparser.cpp b/src/data/fitparser.cpp index 5b473aea..973070a0 100644 --- a/src/data/fitparser.cpp +++ b/src/data/fitparser.cpp @@ -145,7 +145,8 @@ bool FITParser::parseDefinitionMessage(quint8 header) return false; _len -= sizeof(def->devFields[i]); } - } + } else + def->numDevFields = 0; return true; }