From 2d3c40bb733594770b443322afd5694a605aaf0b Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Mon, 5 Jul 2021 16:08:05 +0100 Subject: [PATCH] Bumped cppcheck version to 2.5 --- .github/workflows/build.yml | 2 +- tcutils/utils.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29cd340b..11ef2a8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,7 +127,7 @@ jobs: CC: gcc # This is required to use a version of cppcheck other than that # supplied with the operating system - CPPCHECK_VER: 2.4 + CPPCHECK_VER: 2.5 CPPCHECK_REPO: https://github.com/danmar/cppcheck.git steps: # This is currently the only way to get a version into diff --git a/tcutils/utils.h b/tcutils/utils.h index 2590af0c..c94af780 100644 --- a/tcutils/utils.h +++ b/tcutils/utils.h @@ -17,6 +17,8 @@ typedef struct stream char *data; /* holds stream data */ char *pos; /* current read/write position */ int size; /* number of bytes in data */ + + stream() : data(0), pos(0), size(0) {} } STREAM; #define qstream_new(_s, _size) \