Skip to content

Commit

Permalink
Provide a nill (dot) value when the field is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3 committed May 31, 2023
1 parent d9d21d6 commit ee299e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions annot-tsv.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ void process_line(args_t *args, char *line, size_t size)
else
str = args->src.hdr.cols->off[ -args->src.transfer_idx[i] - 1 ]; // non-existent field in src, use a default value

if ( !str || !*str ) str = "."; // provide a nill dot value when the field is empty

if ( !args->allow_dups )
{
if ( khash_str2int_has_key(args->tmp_hash[i],str) ) continue;
Expand Down

0 comments on commit ee299e3

Please sign in to comment.