Skip to content

Commit

Permalink
use buffer pool in test/file/mutt_file_sanitize_regexp.c
Browse files Browse the repository at this point in the history
  • Loading branch information
roccoblues authored and flatcap committed Nov 12, 2023
1 parent 535251e commit 1a78eab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/file/mutt_file_sanitize_regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ void test_mutt_file_sanitize_regex(void)
}

{
struct Buffer buf = buf_make(0);
TEST_CHECK(mutt_file_sanitize_regex(&buf, NULL) != 0);
struct Buffer *buf = buf_pool_get();
TEST_CHECK(mutt_file_sanitize_regex(buf, NULL) != 0);
buf_pool_release(&buf);
}
}

0 comments on commit 1a78eab

Please sign in to comment.