mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: set errno in xstrxcmp
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user