diff options
author | Andrew Bartlett <abartlet@samba.org> | 2021-04-20 14:38:37 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-04-28 03:43:34 +0000 |
commit | 190e15dfb07b2b99398ea1874ae413c7a90f862e (patch) | |
tree | 02ea5114edfa35f8ecc35e60aafec33b9d8420d4 | |
parent | 225fefe6cf8f1c0292f13104c7b51c3397b941ae (diff) | |
download | samba-190e15dfb07b2b99398ea1874ae413c7a90f862e.tar.gz |
tests: Fix "-Werror=maybe-uninitialized" errors only seen with -O3 and --enable-coverage
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
-rw-r--r-- | libcli/drsuapi/tests/test_repl_decrypt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcli/drsuapi/tests/test_repl_decrypt.c b/libcli/drsuapi/tests/test_repl_decrypt.c index 6c545e9d022..996c6e6c042 100644 --- a/libcli/drsuapi/tests/test_repl_decrypt.c +++ b/libcli/drsuapi/tests/test_repl_decrypt.c @@ -67,7 +67,7 @@ static void test_drsuapi_rid_encrypt_decrypt_attribute_value(void **state) const DATA_BLOB plaintext = data_blob_const(test_data, sizeof(test_data)); DATA_BLOB encrypted; - DATA_BLOB decrypted; + DATA_BLOB decrypted = data_blob_null; werr = drsuapi_encrypt_attribute_value(mem_ctx, &key_blob, @@ -192,7 +192,7 @@ static void test_drsuapi_encrypt_decrypt_attribute_value(void **state) const DATA_BLOB plaintext = data_blob_const(test_data, sizeof(test_data)); DATA_BLOB encrypted; - DATA_BLOB decrypted; + DATA_BLOB decrypted = data_blob_null; werr = drsuapi_encrypt_attribute_value(mem_ctx, &key_blob, @@ -255,7 +255,7 @@ static void test_drsuapi_decrypt_attribute_value(void **state) const DATA_BLOB encrypted = data_blob_const(encrypted_test_data, sizeof(encrypted_test_data)); - DATA_BLOB decrypted; + DATA_BLOB decrypted = data_blob_null; werr = drsuapi_decrypt_attribute_value(mem_ctx, &key_blob, @@ -310,7 +310,7 @@ static void test_drsuapi_rid_decrypt_attribute_value(void **state) const DATA_BLOB encrypted = data_blob_const(encrypted_test_data, sizeof(encrypted_test_data)); - DATA_BLOB decrypted; + DATA_BLOB decrypted = data_blob_null; werr = drsuapi_decrypt_attribute_value(mem_ctx, &key_blob, |