Add a helper function s_alloc (sconfig alloc) that allocates memory using calloc to get 0 initialized memory and checks to ensure it is not NULL. BUG=b:80081934 Change-Id: I56a70cf4865c50ed238226ace86e867bb1ec53db Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/26738 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> |
||
|---|---|---|
| .. | ||
| lex.yy.c_shipped | ||
| main.c | ||
| Makefile.inc | ||
| sconfig.h | ||
| sconfig.l | ||
| sconfig.tab.c_shipped | ||
| sconfig.tab.h_shipped | ||
| sconfig.y | ||