Changes to gnats/gnats/edit.c

"Andrew J. Gray" <[email protected]> Thu, 24 Oct 2002 08:45:10 -0400
Newsgroups gmane.comp.bug-tracking.gnats.patches
Message-ID <[email protected]>
Index: gnats/gnats/edit.c
diff -c gnats/gnats/edit.c:1.57 gnats/gnats/edit.c:1.58
*** gnats/gnats/edit.c:1.57	Sun Aug  4 06:58:04 2002
--- gnats/gnats/edit.c	Thu Oct 24 08:45:09 2002
***************
*** 1104,1110 ****
  
    while (fields != NULL)
      {
!       if (get_field_value (pr, oldPR, fields->ent, NULL, NULL) == NULL)
  	{
  	  setError (err, CODE_INVALID_PR_CONTENTS,
  		    "Required field %s missing from PR %s.",
--- 1104,1111 ----
  
    while (fields != NULL)
      {
!       const char *fldval = get_field_value (pr, oldPR, fields->ent, NULL, NULL);
!       if (fldval == NULL || *fldval == '\0')
  	{
  	  setError (err, CODE_INVALID_PR_CONTENTS,
  		    "Required field %s missing from PR %s.",