util/nvmutil: set errno in xstrxcmp

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-08 15:06:01 +00:00
parent 502aeb8653
commit 1d630f8e36
+8
View File
@@ -1152,6 +1152,14 @@ xstrxcmp(const char *a, const char *b, size_t maxlen)
/*
* Should never reach here. This keeps compilers happy.
*/
/*
* If we do reach here, we want some way to crash
* nvmutil before writing anything to disk.
*
* It checks errno extremely obsessively.
*/
errno = EINVAL;
return -1;
}