update by Fabian's suggestion
This update is wrong. As I mentioned in bug, text is a result of strchr call and thus either is not NULL and *text is then always '\n' or is NULL in which case now you are trying to dereference it and it will crash.
text
strchr
*text
qzhao created request over 6 years ago
qzhao accepted request over 6 years ago
https://apibugzilla.suse.com/show_bug.cgi?id=1083695 Comment5
qzhao
The Open Build Service is an openSUSE project.
This update is wrong. As I mentioned in bug,
text
is a result ofstrchr
call and thus either is not NULL and*text
is then always '\n' or is NULL in which case now you are trying to dereference it and it will crash.