diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-18 15:32:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-14 15:25:16 -0400 |
commit | 6925b61cfdf50a5686de02645b04b269c031f05d (patch) | |
tree | 414c55b16bb61f16ae70b78458da6e1020da7c7f /src/test/test_storagedir.c | |
parent | 7c8f20ba44a831ed9f714453fa776762d1c872c5 (diff) | |
download | tor-6925b61cfdf50a5686de02645b04b269c031f05d.tar.gz tor-6925b61cfdf50a5686de02645b04b269c031f05d.zip |
Fix various GCC LTO warnings in the unit tests.
Diffstat (limited to 'src/test/test_storagedir.c')
-rw-r--r-- | src/test/test_storagedir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_storagedir.c b/src/test/test_storagedir.c index 68cee418ad..76aae7e033 100644 --- a/src/test/test_storagedir.c +++ b/src/test/test_storagedir.c @@ -283,7 +283,7 @@ test_storagedir_save_labeled(void *arg) int r = storage_dir_save_labeled_to_file(d, labels, inp, 8192, &fname); tt_int_op(r, OP_EQ, 0); - size_t n; + size_t n = 0; saved = storage_dir_read(d, fname, 1, &n); tt_assert(memchr(saved, '\0', n)); tt_str_op((char*)saved, OP_EQ, expected); /* NUL guarantees strcmp works */ |