backtrace: Don't ignore strchr errors
This commit is contained in:
parent
ef0f9ad193
commit
9a588944aa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue