:: commit f1392ba4e7ef697d3ec483e50944659fe46e9f20

Mintsuki <mintsuki@protonmail.com> — 2026-02-08 16:10

parents: 2dbeb33102

lib/uri: Initialize *hash output parameter in uri_resolve

diff --git a/common/lib/uri.c b/common/lib/uri.c
index f5ac5477..f390d2cb 100644
--- a/common/lib/uri.c
+++ b/common/lib/uri.c
@@ -28,7 +28,7 @@ bool uri_resolve(char *uri, char **resource, char **root, char **path, char **ha
     memcpy(buf, uri, length);
     uri = buf;
 
-    *resource = *root = *path = NULL;
+    *resource = *root = *path = *hash = NULL;
 
     // Get resource
     for (size_t i = 0; ; i++) {
tab: 248 wrap: offon