Browse Source

Properly fix marauder script number parsing

Willy-JL 1 year ago
parent
commit
01105174f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wifi_marauder_companion/script/cJSON.c

+ 1 - 1
wifi_marauder_companion/script/cJSON.c

@@ -331,7 +331,7 @@ double string_to_double(const char* str, char** endptr) {
 /* Parse the input text to generate a number, and populate the result into item. */
 static cJSON_bool parse_number(cJSON* const item, parse_buffer* const input_buffer) {
     double number = 0;
-    unsigned char* after_end = NULL;
+    unsigned char* volatile after_end = NULL;
     unsigned char number_c_string[64];
     unsigned char decimal_point = get_decimal_point();
     size_t i = 0;