Browse Source

Fixed crash.

default 1 month ago
parent
commit
51dc5aad0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      xs_url.h

+ 1 - 1
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, "&");