Skip to content

Commit 224373c

Browse files
committed
statical-code-check with Platform-IO (Issue #593)
1 parent 3f64031 commit 224373c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Audio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* Created on: Oct 26.2018
55
*
6-
* Version 3.0.6a
7-
* Updated on: Aug 28.2023
6+
* Version 3.0.6b
7+
* Updated on: Sep 25.2023
88
* Author: Wolle (schreibfaul1)
99
*
1010
*/

src/Audio.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* Created on: Oct 28,2018
55
*
6-
* Version 3.0.6
7-
* Updated on: Aug 05.2023
6+
* Version 3.0.6b
7+
* Updated on: Sept 25.2023
88
* Author: Wolle (schreibfaul1)
99
*/
1010

@@ -374,7 +374,7 @@ class Audio : private AudioBuffer{
374374
}
375375

376376
int specialIndexOf (uint8_t* base, const char* str, int baselen, bool exact = false){
377-
int result; // seek for str in buffer or in header up to baselen, not nullterninated
377+
int result = 0; // seek for str in buffer or in header up to baselen, not nullterninated
378378
if (strlen(str) > baselen) return -1; // if exact == true seekstr in buffer must have "\0" at the end
379379
for (int i = 0; i < baselen - strlen(str); i++){
380380
result = i;
@@ -407,7 +407,7 @@ class Audio : private AudioBuffer{
407407
base64_encodestate _state;
408408
base64_init_encodestate(&_state);
409409
int len = base64_encode_block(&source[0], sourceLength, &buffer[0], &_state);
410-
len = base64_encode_blockend((buffer + len), &_state);
410+
base64_encode_blockend((buffer + len), &_state);
411411
memcpy(dest, buffer, strlen(buffer));
412412
dest[strlen(buffer)] = '\0';
413413
free(buffer);

0 commit comments

Comments
 (0)