summaryrefslogtreecommitdiff
path: root/thirdparty/opus/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/opus/stream.c')
-rw-r--r--thirdparty/opus/stream.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/thirdparty/opus/stream.c b/thirdparty/opus/stream.c
index 0238a6b31b..6a85197a66 100644
--- a/thirdparty/opus/stream.c
+++ b/thirdparty/opus/stream.c
@@ -235,8 +235,7 @@ void *op_fopen(OpusFileCallbacks *_cb,const char *_path,const char *_mode){
fp=fopen(_path,_mode);
#else
fp=NULL;
- if(_path==NULL||_mode==NULL)errno=EINVAL;
- else{
+ {
wchar_t *wpath;
wchar_t *wmode;
wpath=op_utf8_to_utf16(_path);
@@ -266,8 +265,7 @@ void *op_freopen(OpusFileCallbacks *_cb,const char *_path,const char *_mode,
fp=freopen(_path,_mode,(FILE *)_stream);
#else
fp=NULL;
- if(_path==NULL||_mode==NULL)errno=EINVAL;
- else{
+ {
wchar_t *wpath;
wchar_t *wmode;
wpath=op_utf8_to_utf16(_path);