Udf now set to false in put_enum_string when val is initialized.
This commit is contained in:
@@ -245,6 +245,7 @@ static long put_enum_str(paddr,pstring)
|
||||
if(strncmp(pstring,pbi->znam,sizeof(pbi->znam))==0) pbi->val = 0;
|
||||
else if(strncmp(pstring,pbi->onam,sizeof(pbi->onam))==0) pbi->val = 1;
|
||||
else return(S_db_badChoice);
|
||||
pbi->udf=FALSE;
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -323,6 +323,7 @@ static long put_enum_str(paddr,pstring)
|
||||
for (i = 0; i < 16; i++){
|
||||
if(strncmp(pstate_name,pstring,sizeof(pmbbi->zrst))==0){
|
||||
pmbbi->val = i;
|
||||
pmbbi->udf = FALSE;
|
||||
return(0);
|
||||
}
|
||||
pstate_name += sizeof(pmbbi->zrst);
|
||||
|
||||
Reference in New Issue
Block a user