lessone1 пре 1 година
родитељ
комит
170796ea70
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/wn_utils.c

+ 5 - 0
src/wn_utils.c

@@ -279,6 +279,11 @@ int urldecode(char *str, int len)
     int value;
     int c;
 
+    if (data == RT_NULL)
+    {
+        return 0;
+    }
+
     while (len--)
     {
         if (*data == '+')