default 1 anno fa
parent
commit
51dc5aad0f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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, "&");