From 8ad9a091be389541e48069f9f411ad08edbfce9e Mon Sep 17 00:00:00 2001 From: "Alexander S.Kresin" Date: Sun, 20 Oct 2002 18:36:32 +0000 Subject: [PATCH] 2002-10-20 22:40 UTC+0300 Alexander Kresin --- harbour/ChangeLog | 4 ++++ harbour/source/rdd/dbcmd.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 78abd1d5b3..12f010abf1 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2002-10-20 22:40 UTC+0300 Alexander Kresin + * source/rdd/dbcmd.c + ! Yet another fix related to the hb_parc() changes + 2002-10-20 21:12 UTC+0300 Alexander Kresin * source/rdd/dbcmd.c ! Few fixes related to the latest hb_parc() changes diff --git a/harbour/source/rdd/dbcmd.c b/harbour/source/rdd/dbcmd.c index 80bb568163..cd80a96d7d 100644 --- a/harbour/source/rdd/dbcmd.c +++ b/harbour/source/rdd/dbcmd.c @@ -2326,8 +2326,7 @@ HB_FUNC( ORDCONDSET ) { lpdbOrdCondInfo = ( LPDBORDERCONDINFO ) hb_xgrab( sizeof( DBORDERCONDINFO ) ); szFor = hb_parc( 1 ); - ulLen = strlen( szFor ); - if( ulLen ) + if( szFor && ( ulLen = strlen( szFor ) ) != 0 ) { lpdbOrdCondInfo->abFor = ( BYTE * ) hb_xgrab( ulLen + 1 ); strcpy( ( char * ) lpdbOrdCondInfo->abFor, szFor );