Contributions by rmartinjak

originally from: https://github.com/Recycler1993/iniparser/pull/1