mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
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
Block a user