aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-07-30 18:00:39 +0200
committerMattias Andrée <maandree@kth.se>2021-07-30 18:00:39 +0200
commita766a76da23e56ddd37933408e04712856a85263 (patch)
treea6995513ae76d750ca87eab3293bea01dac94326 /libkeccak.h
parentconfig.mk: doc ALLOCA_LIMIT, add CC=cc, and set PREFIX=/usr (diff)
downloadlibkeccak-a766a76da23e56ddd37933408e04712856a85263.tar.gz
libkeccak-a766a76da23e56ddd37933408e04712856a85263.tar.bz2
libkeccak-a766a76da23e56ddd37933408e04712856a85263.tar.xz
Fix warning
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libkeccak.h2
1 files changed, 1 insertions, 1 deletions
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;