diff --git a/harbour/source/compiler/harbour.slx b/harbour/source/compiler/harbour.slx index 930e443099..3a843f5476 100644 --- a/harbour/source/compiler/harbour.slx +++ b/harbour/source/compiler/harbour.slx @@ -485,7 +485,7 @@ LANGUAGE_RULES_ARE { #undef STREAM_APPEND #define STREAM_APPEND(x) \ - if( iPairLen == 0 && sStart[1] == '[' ) { sPair[ iPairLen++ ] = sStart[1]; } \ + if( iPairLen == 0 && sStart[0] == '[' && sStart[1] ) { sPair[ iPairLen++ ] = sStart[1]; } \ if( x == ']' && iCloseSquare == 0 ) { iCloseSquare = iPairLen + 1; } sPair[ iPairLen++ ] = x; #undef STREAM_OPEN