From 3f36b29589870d98eb1dc9945d3726eba6746728 Mon Sep 17 00:00:00 2001 From: Alejandro Pereda Date: Mon, 26 Dec 2016 16:01:50 +0100 Subject: [PATCH] Overwrites error parameter in stb_vorbis_open_memory when there is no error. This avoid confusion due to previous values. --- stb_vorbis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stb_vorbis.c b/stb_vorbis.c index c4f24d5..91ad4bb 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -4980,6 +4980,7 @@ stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *err if (f) { *f = p; vorbis_pump_first_frame(f); + if (error) *error = VORBIS__no_error; return f; } }