From a766a76da23e56ddd37933408e04712856a85263 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 30 Jul 2021 18:00:39 +0200 Subject: Fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libkeccak.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkeccak.h b/libkeccak.h index d830ed8..36c86f3 100644 --- a/libkeccak.h +++ b/libkeccak.h @@ -1006,7 +1006,7 @@ static inline size_t libkeccak_hmac_marshal(const struct libkeccak_hmac_state *restrict state, void *restrict data_) { unsigned char *restrict data = data_; - size_t written = libkeccak_state_marshal(state ? &state->sponge : NULL, data); + size_t written = libkeccak_state_marshal(&state->sponge, data); if (data) { data += written / sizeof(char); *(size_t *)data = state->key_length; -- cgit v1.2.3-70-g09d2