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. */ |