fix: atoll: init ret at 0

This commit is contained in:
starnakin 2024-09-06 23:56:58 +02:00
parent 8d9ebecadd
commit 84f28095b2

View File

@ -3,7 +3,7 @@
long long atoll(const char *str)
{
const char *start = str;
long long ret;
long long ret = 0;
while (*start != '\0') {
if (isdigit(*str))