]> git.ipfire.org Git - thirdparty/systemd.git/commit
efivars: don't bother with realloc() if we have no interest in the old data
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Nov 2025 11:12:30 +0000 (12:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Nov 2025 11:37:08 +0000 (12:37 +0100)
commit88e26303ce922bb20327e62cd8fbfa3c997384cd
treea74005a6654de035f7d99fd6ef47a62060e00b91
parent00725c3c4f044b55c78467a3dc3d3026aba40a9f
efivars: don't bother with realloc() if we have no interest in the old data

We shouldn't ask glibc to keep the old data around (which realloc() is
about), given we overwrite it entirely anyway. Let's hence speed things
up here, and allow glibc to just allocate a new block for us (and
shorten the code a bit)
src/basic/efivars.c