diff --git a/s2d_ustdlib.c b/s2d_ustdlib.c index 63406bde..8f4d24ff 100644 --- a/s2d_ustdlib.c +++ b/s2d_ustdlib.c @@ -48,7 +48,7 @@ int s2d_ilen(char *s) { } int s2d_strlen(char *s) { - int result; + int result = 0; char *p = s; do {result++;} while (*(++p) != '\0'); return result;