1
0
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:
Lammert Bies
2019-04-15 08:35:19 +02:00
parent 2b7a47cf25
commit b1aaf3ce77

View File

@@ -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;