mirror of
https://github.com/lammertb/libhttp.git
synced 2026-01-03 16:02:30 +03:00
Fixed infinite loop problem
This commit is contained in:
@@ -50,6 +50,8 @@ bool XX_httplib_option_value_to_int( const char *value, int *config ) {
|
||||
|
||||
val *= 10;
|
||||
val += *ptr - '0';
|
||||
|
||||
ptr++;
|
||||
}
|
||||
|
||||
if ( *ptr != '\0' ) return true;
|
||||
|
||||
Reference in New Issue
Block a user