Просмотр исходного кода

plugins/check_http: Improve readability

Koen Wilde 11 лет назад
Родитель
Сommit
b54d09867c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      plugins/check_http.c

+ 2 - 2
plugins/check_http.c

@@ -687,8 +687,8 @@ decode_chunked_page (const char *raw, char *dst)
   dst_pos = dst;
   while (chunksize = strtoul(raw_pos, NULL, 16)) {
     // soak up the optional chunk params (which we will ignore)
-    for (; *raw_pos && *raw_pos != '\r' && *raw_pos != '\n'; raw_pos++)
-      ;
+    while (*raw_pos && *raw_pos != '\r' && *raw_pos != '\n')
+      raw_pos++;
 
     raw_pos += 2; // soak up the leading CRLF