summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <funman@videolan.org>2012-05-06 23:38:15 -0400
committerRafaël Carré <funman@videolan.org>2012-05-06 23:38:15 -0400
commit5aadf87e9863dae8ea0858657a479b41a14516cc (patch)
tree9260c4377a06aefd3445cfd388c7dc64ef8d0e8a
parent06c8ab852b7be4b2788c7d3bfc41e1def3c09503 (diff)
downloadrockbox-5aadf87e9863dae8ea0858657a479b41a14516cc.tar.gz
rockbox-5aadf87e9863dae8ea0858657a479b41a14516cc.zip
asap codec: remove invalid memset
This would zero the first 4 or 8 bytes of the array because it is declared as a pointer rockbox/lib/rbcodec/codecs/libasap/asap.c:1229:44: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(ast -> memory, 0, sizeof(ast -> memory)); ~~~~~~~~~~~~~ ~~~~~~~^~~~~~
-rw-r--r--lib/rbcodec/codecs/libasap/asap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libasap/asap.c b/lib/rbcodec/codecs/libasap/asap.c
index 1aeb843fa3..a2c592fd7e 100644
--- a/lib/rbcodec/codecs/libasap/asap.c
+++ b/lib/rbcodec/codecs/libasap/asap.c
@@ -1226,7 +1226,6 @@ PRIVATE FUNC(abool, parse_sap, (
1226 return FALSE; 1226 return FALSE;
1227 if (ast == NULL) 1227 if (ast == NULL)
1228 return TRUE; 1228 return TRUE;
1229 ZERO_ARRAY(ast _ memory);
1230 module_index = module_info _ header_len + 2; 1229 module_index = module_info _ header_len + 2;
1231 while (module_index + 5 <= module_len) { 1230 while (module_index + 5 <= module_len) {
1232 V(int, start_addr) = UWORD(module, module_index); 1231 V(int, start_addr) = UWORD(module, module_index);