diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-28 01:14:25 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-28 02:27:00 +0000 |
| commit | 998528c4045ec711e3b6c2b92e227db333f3b020 (patch) | |
| tree | c36b871ba6f2a373362226984b3a1063aa7de494 /util/libreboot-utils/lib/rand.c | |
| parent | 29296fc51307c13bf5094cd8981e6616df43fdec (diff) | |
rand.c: fix initialisation bug in mrkbuf
should be null on bad return
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/rand.c')
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 4c7458c7..9304d83a 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -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"); |
