mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 06:49:52 +02:00
hexdump performance test, part 1
spoiler alert: it's slow as molasses part 2 will be presented at a later date (yes, please don't fill 8GB of memory with random data and hexdump it) Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -179,7 +179,6 @@ scatn(ssize_t sc, const char **sv,
|
||||
size_t max, char **rval)
|
||||
{
|
||||
int saved_errno = errno;
|
||||
|
||||
char *final = NULL;
|
||||
char *rcur = NULL;
|
||||
char *rtmp = NULL;
|
||||
@@ -192,7 +191,9 @@ scatn(ssize_t sc, const char **sv,
|
||||
|
||||
for (i = 0; i < sc; i++) {
|
||||
|
||||
if (i == 0) {
|
||||
if (if_err(sv[i] == NULL, EFAULT))
|
||||
goto err;
|
||||
else if (i == 0) {
|
||||
if (sdup(sv[0], max, &final) < 0)
|
||||
goto err;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user