diff options
Diffstat (limited to 'tbl-dctrl/tbl-dctrl.c')
-rw-r--r-- | tbl-dctrl/tbl-dctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl-dctrl/tbl-dctrl.c b/tbl-dctrl/tbl-dctrl.c index aec0898..2801ddf 100644 --- a/tbl-dctrl/tbl-dctrl.c +++ b/tbl-dctrl/tbl-dctrl.c @@ -259,7 +259,7 @@ static error_t parse_opt (int key, char * arg, struct argp_state * state) if (fn != NULL) *(fn++) = '\0'; struct column *col = &args->columns[args->num_columns]; col->heading = carg; - col->field_inx = fieldtrie_insert(fn == NULL ? carg : fn); + col->field_inx = fieldtrie_insert(fn == NULL ? carg : fn)->inx; size_t n = 0; _Bool err = 0; for (char const *p = lens; *p != '\0'; p++) { @@ -417,7 +417,7 @@ int main(int argc, char * argv[]) FSAF * fp = fsaf_fdopen(fd, fname.s); para_parser_t pp; - para_parser_init(&pp, fp, true, false); + para_parser_init(&pp, fp, true, false, false); para_t para; para_init(&pp, ¶); while (1) { |