strdup_to() returns 0 on success and here we convert obvious blocks which either return -ENOMEM or 0.