diff --git a/addons/misra.py b/addons/misra.py index 2cced8d14..d24ea0d3f 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -4063,8 +4063,9 @@ class MisraChecker: errmsg = 'misra violation (use --rule-texts= to get proper output)' if self.path_premium_addon: for line in cppcheckdata.cmd_output([self.path_premium_addon, '--cli', '--get-rule-text=' + errorId]).split('\n'): - if not line.startswith('{'): + if len(line) > 1 and not line.startswith('{'): errmsg = line + break else: errmsg = 'misra violation %s with no text in the supplied rule-texts-file' % (ruleNum)