aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-02-04 13:37:47 +0100
committerdefault <nobody@localhost>2025-02-04 13:37:55 +0100
commit51dc5aad0fabaa35df27bc5b112d21bc470cc212 (patch)
tree7d4fe9e677fabde9ffd4362b2480a758594058eb
parent35ce3d1ecb26f7fb76858f015312b69cb9817bfb (diff)
Fixed crash.
-rw-r--r--xs_url.h2
1 files changed, 1 insertions, 1 deletions
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, "&");