diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-07-30 14:54:28 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-07-30 14:54:28 -0700 |
| commit | 33a63bb8d9e56424140d4b546bad5d10a3da97aa (patch) | |
| tree | 04d45104bae107087e6ff0712859c410a090a521 /bp.c | |
| parent | 3445982b16a3f8bf910d5ab679d840bb8d9ec20e (diff) | |
Improved error checking
Diffstat (limited to 'bp.c')
| -rw-r--r-- | bp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -458,7 +458,7 @@ static int process_git_files(def_t *defs, pat_t *pattern, int argc, char *argv[] if (child == -1) err(EXIT_FAILURE, "Failed to fork"); if (child == 0) { - const char **git_args = memcheck(calloc((size_t)(2+argc+1), sizeof(char*))); + const char **git_args = new(char*[2+argc+1]); int g = 0; git_args[g++] = "git"; git_args[g++] = "ls-files"; |
