From 71c0516d520ba0d05b496fb18659c0e7292d4abb Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 22 Dec 2014 21:50:47 +0100 Subject: [PATCH] zxbox: Add missing break; statement No harm done, same values are assigned in the "default" case. cppcheck reported: [rockbox/apps/plugins/zxbox/tapefile.c:674] -> [rockbox/apps/plugins/zxbox/tapefile.c:681]: (warning) Buffer 'seg_desc' is being written before its old content has been used. 'break;' missing? Change-Id: I2bf044db9022c848c304f1ad88c012bd85ee61df --- apps/plugins/zxbox/tapefile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/plugins/zxbox/tapefile.c b/apps/plugins/zxbox/tapefile.c index 92f4ea69f6..b030f8dab9 100644 --- a/apps/plugins/zxbox/tapefile.c +++ b/apps/plugins/zxbox/tapefile.c @@ -674,7 +674,8 @@ static int interpret_tzx_header(byte *hb, struct seginfo *csp) rb->snprintf(seg_desc, DESC_LEN,"Tapefile Concatenation Point"); csp->type = ST_MISC; csp->segtype = SEG_SKIP; - + break; + default: csp->type = ST_MISC; csp->segtype = SEG_SKIP;