From ba2b082abdb99aedf2d3d56a4c705c944ee70863 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Wed, 30 Oct 1996 17:38:29 +0000 Subject: [PATCH] Udf now set to false in put_enum_string when val is initialized. --- src/rec/biRecord.c | 1 + src/rec/mbbiRecord.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/rec/biRecord.c b/src/rec/biRecord.c index e054b7615..8876eeefa 100644 --- a/src/rec/biRecord.c +++ b/src/rec/biRecord.c @@ -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); } diff --git a/src/rec/mbbiRecord.c b/src/rec/mbbiRecord.c index 4f2b2c1f7..9816d5b93 100644 --- a/src/rec/mbbiRecord.c +++ b/src/rec/mbbiRecord.c @@ -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);