summaryrefslogtreecommitdiff
path: root/tests/status/worktree.c
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2020-06-27 12:33:32 -0700
committerlhchavez <lhchavez@lhchavez.com>2020-06-30 06:25:10 -0700
commit3a197ea7ead1bc1b018eb809e92f418a00e5c3f8 (patch)
tree782324566a568dc45ff7ee7599eafa48a8f2442e /tests/status/worktree.c
parentd6c62852076005053be9169cb4f3cd9cf9db2aea (diff)
downloadlibgit2-3a197ea7ead1bc1b018eb809e92f418a00e5c3f8.tar.gz
Make the tests pass cleanly with MemorySanitizer
This change: * Initializes a few variables that were being read before being initialized. * Includes https://github.com/madler/zlib/pull/393. As such, it only works reliably with `-DUSE_BUNDLED_ZLIB=ON`.
Diffstat (limited to 'tests/status/worktree.c')
-rw-r--r--tests/status/worktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/status/worktree.c b/tests/status/worktree.c
index 7711b2da4..d2842485b 100644
--- a/tests/status/worktree.c
+++ b/tests/status/worktree.c
@@ -949,7 +949,7 @@ void test_status_worktree__sorting_by_case(void)
void test_status_worktree__long_filenames(void)
{
- char path[260*4+1];
+ char path[260*4+1] = {0};
const char *expected_paths[] = {path};
const unsigned int expected_statuses[] = {GIT_STATUS_WT_NEW};