Fixes asprintf return code