2009-07-14 12:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* source/vm/extend.c
    ! [REVERTED - I overlooked it]
      Fixed hb_parvcx() to return "" instead of NULL when dealing
      with array parameters out of bound or non-string.
      (Borrowed from xhb by Ron Pinkas. Although the fix is
      implemented differently in Harbour)
This commit is contained in:
Viktor Szakats
2009-07-14 10:46:00 +00:00
parent df06dd542d
commit 1fcbe31892
2 changed files with 9 additions and 2 deletions

View File

@@ -17,6 +17,14 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-07-14 12:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/extend.c
! [REVERTED - I overlooked it]
Fixed hb_parvcx() to return "" instead of NULL when dealing
with array parameters out of bound or non-string.
(Borrowed from xhb by Ron Pinkas. Although the fix is
implemented differently in Harbour)
2009-07-14 12:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/gtcrs.c
* harbour/source/rtl/gttrm/gttrm.c

View File

@@ -666,8 +666,7 @@ const char * hb_parvcx( int iParam, ... )
ulArrayIndex = va_arg( va, ULONG );
va_end( va );
pItem = hb_arrayGetItemPtr( pItem, ulArrayIndex );
return pItem && HB_IS_STRING( pItem ) ? hb_itemGetCPtr( pItem ) : "";
return hb_arrayGetCPtr( pItem, ulArrayIndex );
}
}