diff options
author | Robert Swiecki <swiecki@google.com> | 2016-03-15 15:48:33 +0100 |
---|---|---|
committer | Robert Swiecki <swiecki@google.com> | 2016-03-15 15:48:33 +0100 |
commit | 3a94db745d9e2157adc992d538f1e0eaebd7d47e (patch) | |
tree | e57662ee2044cf9a41948465f6e003999fbcad39 /files.c | |
parent | 37778e08ed1a8c22a0349b184a514a7e0f8d21a2 (diff) | |
download | honggfuzz-3a94db745d9e2157adc992d538f1e0eaebd7d47e.tar.gz |
More use of util_Malloc()
Diffstat (limited to 'files.c')
-rw-r--r-- | files.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -205,7 +205,7 @@ static bool files_readdir(honggfuzz_t * hfuzz) bool files_init(honggfuzz_t * hfuzz) { - hfuzz->files = malloc(sizeof(char *)); + hfuzz->files = util_Malloc(sizeof(char *)); if (hfuzz->externalCommand && !hfuzz->inputFile) { hfuzz->fileCnt = 1; hfuzz->files[0] = "CREATED"; @@ -215,11 +215,6 @@ bool files_init(honggfuzz_t * hfuzz) return true; } - if (!hfuzz->files) { - PLOG_E("Couldn't allocate memory"); - return false; - } - if (!hfuzz->inputFile) { LOG_E("No input file/dir specified"); return false; |