diff options
author | David Hows <howsdav@gmail.com> | 2015-05-04 16:39:01 +1000 |
---|---|---|
committer | David Hows <howsdav@gmail.com> | 2015-05-04 16:39:01 +1000 |
commit | 5ad5e1ec10372590fbee9076227f37f738a0fc97 (patch) | |
tree | 48837734587c47ee403ee3620f87842d1fce2dcb /test/utility | |
parent | 5b10b0fbb07ad520321ac9d79a7f851b72bcf2d3 (diff) | |
download | mongo-5ad5e1ec10372590fbee9076227f37f738a0fc97.tar.gz |
CR Changes
Diffstat (limited to 'test/utility')
-rw-r--r-- | test/utility/test_util.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utility/test_util.i b/test/utility/test_util.i index 701691a3811..394f32037c5 100644 --- a/test/utility/test_util.i +++ b/test/utility/test_util.i @@ -98,7 +98,7 @@ testutil_clean_work_dir(char *dir) /* 10 bytes for the Windows rd command */ inputSize = strlen(dir) + sizeof(RM_COMMAND); - if ((buffer = (char*) malloc (inputSize)) == NULL ) + if ((buffer = (char*)malloc(inputSize)) == NULL) testutil_die(1, "Failed to allocate memory"); snprintf(buffer, inputSize, "%s%s", RM_COMMAND, dir); @@ -122,7 +122,7 @@ testutil_make_work_dir(char *dir) /* 7 bytes for the mkdir command */ inputSize = strlen(dir) + sizeof(MKDIR_COMMAND); - if ((buffer = (char*) malloc (inputSize)) == NULL ) + if ((buffer = (char*)malloc(inputSize)) == NULL) testutil_die(1, "Failed to allocate memory"); /* mkdir shares syntax between Windows and Linux */ |