summaryrefslogtreecommitdiff
path: root/basic/source/comp/io.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/comp/io.cxx')
-rw-r--r--basic/source/comp/io.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/basic/source/comp/io.cxx b/basic/source/comp/io.cxx
index 595b0c95bc61..988e56031a3e 100644
--- a/basic/source/comp/io.cxx
+++ b/basic/source/comp/io.cxx
@@ -236,8 +236,6 @@ void SbiParser::Open()
TestToken( AS );
// channel number
std::unique_ptr<SbiExpression> pChan(new SbiExpression( this ));
- if( !pChan )
- Error( ERRCODE_BASIC_SYNTAX );
std::unique_ptr<SbiExpression> pLen;
if( Peek() == SYMBOL )
{
@@ -254,8 +252,7 @@ void SbiParser::Open()
// channel number
// file name
pLen->Gen();
- if( pChan )
- pChan->Gen();
+ pChan->Gen();
aFileName.Gen();
aGen.Gen( SbiOpcode::OPEN_, static_cast<sal_uInt32>(nMode), static_cast<sal_uInt32>(nFlags) );
bInStatement = false;