+6
−7
+6
−6
+5
−6
+10
−10
+18
−1
Loading
Instead of polluting many places with #ifdefs, we create a single place for this function, and also check return code properly so that a NULL pointer returned won't cause problems.