csmith-project / creduce

C-Reduce, a C and C++ program reducer
Other
1.47k stars 128 forks source link

Remove unnecessary null pointer checks #208

Closed elfring closed 4 years ago

elfring commented 4 years ago

An extra null pointer check is not needed in functions like the following.

chenyang78 commented 4 years ago

I borrowed the fix in the commit 2dd5d02 made by @marxin to cvise. Thanks!

elfring commented 4 years ago

Thanks for your small source code improvement.

chenyang78 commented 4 years ago

Thanks for reporting the issue, @elfring !