summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-15 19:06:35 +0100
committerGitHub <noreply@github.com>2023-02-15 19:06:35 +0100
commit6db96d9cfd881cd20aa8a63441cd680137def75f (patch)
treef1b82f93760f807984facf6dc2d019b2ce74f91f
parent6333455c29dd191d8220794b74e8dfe9fa382604 (diff)
parent74e57cf02883a9e1c34df3fd17d3293e98c1fae9 (diff)
downloadvyatta-cfg-6db96d9cfd881cd20aa8a63441cd680137def75f.tar.gz
vyatta-cfg-6db96d9cfd881cd20aa8a63441cd680137def75f.zip
Merge pull request #60 from sarthurdev/bookworm
debian: T5003: Fixes for GCC in Debian 12 "Bookworm"
-rw-r--r--src/cstore/cstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp
index b9f68a2..4f19ebf 100644
--- a/src/cstore/cstore.cpp
+++ b/src/cstore/cstore.cpp
@@ -2901,7 +2901,7 @@ Cstore::validate_val(const tr1::shared_ptr<Ctemplate>& def, const char *value)
#if __GNUC__ < 6
auto_ptr<char> vbuf(strdup(value));
#else
- unique_ptr<char> vbuf(strdup(value));
+ unique_ptr<char, decltype(&std::free)> vbuf { strdup(value), &std::free };
#endif
/* set the handle to be used during validate_value() for var ref