/[gnats]/gnats/gnats/adm.c
ViewVC logotype

Diff of /gnats/gnats/adm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by pdm, Sat Dec 8 20:21:20 2001 UTC revision 1.20 by andrewg, Sun Oct 27 06:21:17 2002 UTC
# Line 111  AdmEntry * Line 111  AdmEntry *
111  get_adm_record (FieldIndex field, const char *key)  get_adm_record (FieldIndex field, const char *key)
112  {  {
113    FILE *fp;    FILE *fp;
114      char *filename;
115    char *path;    char *path;
116    char *line;    char *line;
117    size_t keylen;    size_t keylen;
118    AdmEntry *res = NULL;    AdmEntry *res = NULL;
119    int notdone = 1;    int notdone = 1;
120    
121      filename = fieldDefForIndex (field)->adm_db_name;
122      if (filename == NULL)
123        {
124          return NULL;
125        }
126    
127    path = gnats_adm_dir (fieldDefForIndex (field)->database,    path = gnats_adm_dir (fieldDefForIndex (field)->database,
128                          fieldDefForIndex (field)->adm_db_name);                          filename);
129    
130    /* append a delimiting ':' to the end of string to make sure the match    /* append a delimiting ':' to the end of string to make sure the match
131       is fully correct.  */       is fully correct.  */

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26