Cpp function return value

when I code with urho3d.
I find a problem about pure c++ language.

the “temp” should be null?

it is use lasted GCC

It’s documented as far back as C89.

The behavior is undefined unless the caller does not use the return value.

1844 If the } that terminates a function is reached, and the value of the function call is used by the caller, the behavior is undefined.

source: http://c0x.coding-guidelines.com/6.9.1.html for N1256 (just post C99)