mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Reduce variable scope to make cppcheck happy.
This commit is contained in:
parent
7dc06f3096
commit
ad1f132cf2
@ -1421,15 +1421,16 @@ static char *parse_field(const struct connection *conn, const char *field) {
|
|||||||
* either part of the range is given.
|
* either part of the range is given.
|
||||||
*/
|
*/
|
||||||
static void parse_range_field(struct connection *conn) {
|
static void parse_range_field(struct connection *conn) {
|
||||||
size_t bound1, bound2, len;
|
|
||||||
char *range;
|
char *range;
|
||||||
|
|
||||||
range = parse_field(conn, "Range: bytes=");
|
range = parse_field(conn, "Range: bytes=");
|
||||||
if (range == NULL)
|
if (range == NULL)
|
||||||
return;
|
return;
|
||||||
len = strlen(range);
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
size_t bound1, bound2, len;
|
||||||
|
len = strlen(range);
|
||||||
|
|
||||||
/* parse number up to hyphen */
|
/* parse number up to hyphen */
|
||||||
bound1 = 0;
|
bound1 = 0;
|
||||||
for (bound2=0;
|
for (bound2=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user