mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 18:19:57 +02:00
rand.c: fix initialisation bug in mrkbuf
should be null on bad return Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -118,7 +118,7 @@ mkrstr(size_t n) /* emulates spkmodem-decode */
|
||||
void *
|
||||
mkrbuf(size_t n)
|
||||
{
|
||||
void *buf = "";
|
||||
void *buf = NULL;
|
||||
|
||||
if (n == 0)
|
||||
err_no_cleanup(0, EPERM, "mkrbuf: zero-byte request");
|
||||
|
||||
Reference in New Issue
Block a user