From 51dc5aad0fabaa35df27bc5b112d21bc470cc212 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 4 Feb 2025 13:37:47 +0100 Subject: Fixed crash. --- xs_url.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs_url.h b/xs_url.h index 3c24736..81dd668 100644 --- a/xs_url.h +++ b/xs_url.h @@ -69,7 +69,7 @@ xs_dict *xs_url_vars(const char *str) vars = xs_dict_new(); - if (str != NULL) { + if (xs_is_string(str)) { /* split by arguments */ xs *args = xs_split(str, "&"); -- cgit v1.2.3