diff --git a/src/helpers.c b/src/helpers.c index a1b1fa7c..81a58e19 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -920,6 +920,8 @@ static void print_char(const char c, int times) char *str; str = calloc(1, times + 1); + ON_NULL_ABORT(str); + memset(str, c, times); info("%s\n", str); free(str);