3
0
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:
Denis Kenzior 2019-10-17 12:10:36 -05:00
parent ef0f9ad193
commit 9a588944aa

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)