Commit 218518dc authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Add va_end() invocations.

Fixes Coverity #980717, #980718, #980719.
parent 3cc27477
......@@ -3071,7 +3071,10 @@ void *op_url_stream_vcreate(OpusFileCallbacks *_cb,
void *op_url_stream_create(OpusFileCallbacks *_cb,
const char *_url,...){
va_list ap;
va_list ap;
void *ret;
va_start(ap,_url);
return op_url_stream_vcreate(_cb,_url,ap);
ret=op_url_stream_vcreate(_cb,_url,ap);
va_end(ap);
return ret;
}
......@@ -1617,9 +1617,12 @@ OggOpusFile *op_vopen_url(const char *_url,int *_error,va_list _ap){
}
OggOpusFile *op_open_url(const char *_url,int *_error,...){
va_list ap;
OggOpusFile *ret;
va_list ap;
va_start(ap,_error);
return op_vopen_url(_url,_error,ap);
ret=op_vopen_url(_url,_error,ap);
va_end(ap);
return ret;
}
/*Convenience routine to clean up from failure for the open functions that
......@@ -1655,9 +1658,12 @@ OggOpusFile *op_vtest_url(const char *_url,int *_error,va_list _ap){
}
OggOpusFile *op_test_url(const char *_url,int *_error,...){
va_list ap;
OggOpusFile *ret;
va_list ap;
va_start(ap,_error);
return op_vtest_url(_url,_error,ap);
ret=op_vtest_url(_url,_error,ap);
va_end(ap);
return ret;
}
int op_test_open(OggOpusFile *_of){
......
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