backtrace: Don't ignore strchr errors

This commit is contained in:
Denis Kenzior 2019-10-17 12:10:36 -05:00
parent ef0f9ad193
commit 9a588944aa
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ void __iwd_backtrace_print(unsigned int offset)
}
ptr = strchr(pos, '\n');
if (!ptr)
continue;
*ptr++ = '\0';
if (strncmp(pos, program_path, pathlen) == 0)