Commit 8fa39034 authored by claes's avatar claes

Problems in format selection fixed for arrays

parent 306c7c0a
...@@ -44,6 +44,10 @@ wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts) ...@@ -44,6 +44,10 @@ wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts)
wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts, const char *aname) wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts, const char *aname)
{ {
wb_name n(aname); wb_name n(aname);
if ( n.evenSts()) {
*sts = n.sts();
return 0;
}
wb_orep *orep = m_orep->vrep()->child( sts, m_orep, n); wb_orep *orep = m_orep->vrep()->child( sts, m_orep, n);
if ( EVEN(*sts)) if ( EVEN(*sts))
return 0; return 0;
......
...@@ -38,7 +38,6 @@ extern "C" { ...@@ -38,7 +38,6 @@ extern "C" {
#include "wb_utl.h" #include "wb_utl.h"
#include "wb_lfu.h" #include "wb_lfu.h"
#include "wb_login.h" #include "wb_login.h"
#if defined OS_VMS #if defined OS_VMS
#include "wb_ate.h" #include "wb_ate.h"
#include "wb_sped.h" #include "wb_sped.h"
...@@ -3180,8 +3179,10 @@ static pwr_tBoolean wtt_format_selection( ...@@ -3180,8 +3179,10 @@ static pwr_tBoolean wtt_format_selection(
ldh_eName_Aref, ldh_eName_Aref,
&name_ptr, &ret_len); &name_ptr, &ret_len);
if ( EVEN(sts)) return FALSE; if ( EVEN(sts)) return FALSE;
s = strrchr( name_ptr, '.'); if ( (s = strrchr( name_ptr, '.')))
strcpy( attr_name, s + 1); strcpy( attr_name, s + 1);
else
strcpy( attr_name, "");
} }
strcat(buff, dot); strcat(buff, dot);
strcat(buff, attr_name); strcat(buff, attr_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment