about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-04-22 15:48:41 +0300
committerNakidai <nakidai@disroot.org>2026-04-22 15:48:41 +0300
commit9a7cce615632e47d2ba4e6be3a4ffdb4266ab602 (patch)
tree1b78138f049efccfa1f690d844cdf9f9f7d95be1
parent1d142cd5f7668c0a2ec5b4b62ccc9ca58f9703e9 (diff)
downloadthac-9a7cce615632e47d2ba4e6be3a4ffdb4266ab602.tar.gz
thac-9a7cce615632e47d2ba4e6be3a4ffdb4266ab602.zip
Remove {0} initialization from valnil
Well,
- There's no point in nil's value
- Fields are zero-initialized for global variables by default anyway
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 61aab05..12c123d 100644
--- a/compile.c
+++ b/compile.c
@@ -22,7 +22,7 @@
 
 
 struct val nil = {VVAR, {.name = "nil"}};
-static struct var valnil = {"nil", {VNIL, {0}}};
+static struct var valnil = {"nil", {VNIL}};
 struct scope basescope = {NULL, &valnil, 1};
 
 static struct val zero = {VNUM, {0}};