grumpycoders / uC-sdk

15 stars 7 forks source link

Fix copy and paste bug in __libc_fini_array #25

Closed Thalhammer closed 6 years ago

Thalhammer commented 6 years ago

I don't think it would have ever been called, but correct unused code is better than incorrect unused code.

nicolasnoble commented 6 years ago

Hah, nice one. This is indeed a very poorly covered piece of code, especially in the world of microcontrollers. Unless someone explicitly calls exit(), this wouldn't necessarily be run in the case of a typical "run forever" application.