Skip to content

Commit 35cf00f

Browse files
committed
Update action versions GitHub Actions workflow
1 parent a91262d commit 35cf00f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/build-test.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ jobs:
3232
generator: 'MinGW Makefiles'
3333
build_type: Debug
3434
steps:
35-
- uses: actions/checkout@v3
36-
- uses: actions/setup-python@v4
35+
- uses: actions/checkout@v4
36+
# Use for SSH access
37+
#- uses: mxschmitt/action-tmate@v3
38+
# with:
39+
# detached: true
40+
- uses: actions/setup-python@v5
3741
with:
3842
python-version: '3.x' # use latest Python 3.x
3943
- name: 'Add user site-packages to PATH'
@@ -67,7 +71,7 @@ jobs:
6771
echo "conan_data=${conan_home}/p" >> $GITHUB_OUTPUT
6872
- name: 'Restore Conan cache'
6973
id: cache_conan
70-
uses: actions/cache@v3
74+
uses: actions/cache@v4
7175
with:
7276
key: conan | 1 | ${{runner.os}} | ${{matrix.cc}} | ${{matrix.build_type}}
7377
path: ${{ steps.install_conan.outputs.conan_data }}

conanfile.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[test_requires]
2-
cmocka/1.1.5
2+
cmocka/1.1.7
33

44
[generators]
55
CMakeDeps

src/zone.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,10 @@ nonnull_all
257257
void zone_close_file(
258258
parser_t *parser, zone_file_t *file)
259259
{
260+
assert(file);
260261
const bool is_string = file->name == not_a_file || file->path == not_a_file;
261262

263+
(void)parser;
262264
assert(!is_string || !file->handle);
263265

264266
if (file->buffer.data && !is_string)
@@ -286,7 +288,7 @@ int32_t zone_open_file(
286288

287289
if (!(file = malloc(sizeof(*file))))
288290
return ZONE_OUT_OF_MEMORY;
289-
memset(file, 0, sizeof(*file));// - sizeof(file->fields.tape));
291+
memset(file, 0, sizeof(*file));
290292
if ((result = open_file(parser, file, path, length)) < 0)
291293
goto err_open;
292294

0 commit comments

Comments
 (0)