diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-12 12:04:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-12 13:09:04 +0100 |
commit | 57482ed493ee26f808caa76def9e759218e0c27b (patch) | |
tree | 1006621f3378b1a7b1326b0af4c4bb96d72e8be3 /basic | |
parent | 5db93465bb5fc7f90b897783302118c198ae55f3 (diff) |
CID#707499 check for 0 nDims
Change-Id: I828339695db1b1880d7e884f8bf26911d04b8508
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 0cf478a329d3..047c25cf5f5e 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -2268,7 +2268,7 @@ void SbiRuntime::StepREDIMP() { StarBASIC::Error( SbERR_OUT_OF_RANGE ); } - else + else if (nDims > 0) { // Store dims to use them for copying later sal_Int32* pLowerBounds = new sal_Int32[nDims]; |