aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, "&");