also check asprintf response and clear up that warning