Common library: fix mallopt return code check.