View Single Post
Posts: 317 | Thanked: 787 times | Joined on Oct 2009 @ Krakow, Poland
#3
You are right about checking return value - I should always do that. But in this particular issue malloc succeeds (if it would fail there will be immediate segfault because of NULL pointer). I will try to isolate this from whole program and investigate further. Anyway thanks for your input.

As the case is not closed yet more thoughts are welcome.