Unverified Commit 7b0bda7d authored by Wolle's avatar Wolle Committed by GitHub

fix [-Werror=maybe-uninitialized]

error: 'result' may be used uninitialized in this function [-Werror=maybe-uninitialized]
parent b1a3ffbe
......@@ -836,7 +836,7 @@ _eofout:
//----------------------------------------------------------------------------------------------------------------------
int VORBIS_specialIndexOf(uint8_t* base, const char* str, int baselen, bool exact){
int result; // seek for str in buffer or in header up to baselen, not nullterninated
int result = 0; // seek for str in buffer or in header up to baselen, not nullterninated
if (strlen(str) > baselen) return -1; // if exact == true seekstr in buffer must have "\0" at the end
for (int i = 0; i < baselen - strlen(str); i++){
result = i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment