aboutsummaryrefslogtreecommitdiff
path: root/src/op/end.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-10 23:47:52 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-10 23:47:52 +0100
commit1e3a4e9ff4d9963aa77dc6135f351f90d927e9e0 (patch)
treee8d126c4def527034f4504cecf74202c5b03dcff /src/op/end.c
parent6b865a70c0f29e5ca9e13fae4a2a18406f44f4ee (diff)
downloadnanowasm-1e3a4e9ff4d9963aa77dc6135f351f90d927e9e0.tar.gz
Do not explicitly initialize static variables to zero
This is redundant according to the C standard.
Diffstat (limited to 'src/op/end.c')
-rw-r--r--src/op/end.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op/end.c b/src/op/end.c
index 9eb575d..ca9f109 100644
--- a/src/op/end.c
+++ b/src/op/end.c
@@ -60,7 +60,7 @@ static enum nw_state get_offset(struct nw_interp *const i)
void nwp_op_end(struct nw_interp *const i)
{
- static const struct nw_i_sm_end e = {0};
+ static const struct nw_i_sm_end e;
i->sm.end = e;
i->next = get_offset;