[LTP] [PATCH v2] Convert dup03 to new API and clean up
Cyril Hrubis
chrubis@suse.cz
Fri Nov 13 16:04:45 CET 2020
Hi!
> - fd = malloc(maxfds * sizeof(int));
> + fd = SAFE_MALLOC(maxfds * sizeof(int));
> if (fd == NULL)
> - tst_brkm(TBROK | TERRNO, NULL, "malloc failed");
> - fd[0] = -1;
> + tst_brk(TBROK | TERRNO, "malloc failed");
I've removed the fd == NULL check, since that cannot happen since you
call SAFE_MALLOC() now and pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list