Set states defined true if any state value OR string is defined

This commit is contained in:
Marty Kraimer
1995-02-13 15:18:04 +00:00
parent 68a0f7a00b
commit b30c979b0b
2 changed files with 8 additions and 6 deletions
+4 -3
View File
@@ -128,13 +128,14 @@ static void init_common(pmbbi)
struct mbbiRecord *pmbbi;
{
unsigned long *pstate_values;
char *pstate_string;
short i;
/* determine if any states are defined */
pstate_values = &(pmbbi->zrvl);
pstate_values = &(pmbbi->zrvl); pstate_string = pmbbi->zrst;
pmbbi->sdef = FALSE;
for (i=0; i<16; i++) {
if (*(pstate_values+i) != 0) {
for (i=0; i<16; i++, pstate_string += sizeof(pmbbi->zrst)) {
if((*(pstate_values+i) != 0) || (*pstate_string !='\0')) {
pmbbi->sdef = TRUE;
return;
}
+4 -3
View File
@@ -136,13 +136,14 @@ static void init_common(pmbbo)
struct mbboRecord *pmbbo;
{
unsigned long *pstate_values;
char *pstate_string;
short i;
/* determine if any states are defined */
pstate_values = &(pmbbo->zrvl);
pstate_values = &(pmbbo->zrvl); pstate_string = pmbbo->zrst;
pmbbo->sdef = FALSE;
for (i=0; i<16; i++) {
if (*(pstate_values+i)!= 0) {
for (i=0; i<16; i++, pstate_string += sizeof(pmbbo->zrst)) {
if((*(pstate_values+i)!= 0) || (*pstate_string !='\0')) {
pmbbo->sdef = TRUE;
return;
}