aboutsummaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-15 07:37:23 -0400
committerTest_User <hax@andrewyu.org>2024-06-15 07:37:23 -0400
commitab2a2ab740e8f54254540f2a24eed9de8d878f5c (patch)
treeb5c65ddcca901ee58f9d99e9ee826c5152babaf8 /table.c
parent1238295ee3aaf63858ebb537020e84fefc1d1e63 (diff)
downloadhaxircd-ab2a2ab740e8f54254540f2a24eed9de8d878f5c.tar.gz
haxircd-ab2a2ab740e8f54254540f2a24eed9de8d878f5c.zip
More stuff
Diffstat (limited to '')
-rw-r--r--table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/table.c b/table.c
index 74c454b..8dddf95 100644
--- a/table.c
+++ b/table.c
@@ -185,4 +185,6 @@ void * get_table_prefix(struct table tbl, struct string name) {
for (size_t i = 0; i < tbl.len; i++)
if (tbl.array[i].name.len <= name.len && memcmp(tbl.array[i].name.data, name.data, tbl.array[i].name.len) == 0)
return tbl.array[i].ptr;
+
+ return 0;
}