mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
notmuch-restore: use debug version of talloc_strndup
This gives line numbers for better debugging.
This commit is contained in:
parent
0cfb8a24dc
commit
e40bb1561a
1 changed files with 5 additions and 4 deletions
|
@ -88,10 +88,11 @@ parse_sup_line (void *ctx, char *line,
|
|||
return 1;
|
||||
}
|
||||
|
||||
*query_str = talloc_strndup (ctx, line + match[1].rm_so,
|
||||
match[1].rm_eo - match[1].rm_so);
|
||||
file_tags = talloc_strndup (ctx, line + match[2].rm_so,
|
||||
match[2].rm_eo - match[2].rm_so);
|
||||
*query_str = talloc_strndup_debug (ctx, line + match[1].rm_so,
|
||||
match[1].rm_eo - match[1].rm_so);
|
||||
|
||||
file_tags = talloc_strndup_debug (ctx, line + match[2].rm_so,
|
||||
match[2].rm_eo - match[2].rm_so);
|
||||
|
||||
char *tok = file_tags;
|
||||
size_t tok_len = 0;
|
||||
|
|
Loading…
Reference in a new issue