[Rpm-maint] [rpm-software-management/rpm] It is safe to call `delete` on `nullptr` (PR #3952)

Panu Matilainen notifications at github.com
Thu Sep 18 09:03:39 UTC 2025


pmatilai left a comment (rpm-software-management/rpm#3952)

It's safe, but there's also absolutely no gain from moving this to outside the check because the surrounding code needs the check anyway.

Removing superfluous NULL-checks is fine, but this is a change for the sake of change. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3952#issuecomment-3306373234
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3952/c3306373234 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250918/d8efa155/attachment.htm>


More information about the Rpm-maint mailing list