diff options
author | Jagger <robert@swiecki.net> | 2016-04-06 02:32:50 +0200 |
---|---|---|
committer | Jagger <robert@swiecki.net> | 2016-04-06 02:32:50 +0200 |
commit | 6539b3a046deb211b2da6627ff217dacac1aa675 (patch) | |
tree | 94f46fab9d43a869fb71bab160bb632d5d60d41c /files.c | |
parent | 090aead32dac90b9eb3d9a882486ad057c2be7a8 (diff) | |
download | honggfuzz-6539b3a046deb211b2da6627ff217dacac1aa675.tar.gz |
Introduction of util_StrDup
Diffstat (limited to 'files.c')
-rw-r--r-- | files.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -194,11 +194,7 @@ static bool files_readdir(honggfuzz_t * hfuzz) return false; } - hfuzz->files[count] = strdup(path); - if (!hfuzz->files[count]) { - PLOG_E("Couldn't allocate memory"); - return false; - } + hfuzz->files[count] = util_StrDup(path); hfuzz->fileCnt = ++count; LOG_D("Added '%s' to the list of input files", path); } |