summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2022-04-17 18:07:47 -0400
committer GitHub <noreply@github.com>2022-04-17 18:07:47 -0400
commitfc64f601f707a052adea5122f84014baf1627ffa (patch)
treed8231098a30793177fd88513fb44e5294cf358ab /src/lib/formats
parentee7656dbb23304703aedbf3a20e81c10112409aa (diff)
Fixed string constructor for fs::meta_value (#9580)
In absence of a constructor that explicitly took 'const char *', passing a const char * would be interpretted as a bool
Diffstat (limited to 'src/lib/formats')
-rw-r--r--src/lib/formats/fsmeta.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/formats/fsmeta.h b/src/lib/formats/fsmeta.h
index 84498ea8e1e..472fc61b762 100644
--- a/src/lib/formats/fsmeta.h
+++ b/src/lib/formats/fsmeta.h
@@ -54,6 +54,7 @@ public:
meta_value() { value = false; }
meta_value(std::string &&str) { value = std::move(str); }
meta_value(std::string_view str) { value = std::string(str); }
+ meta_value(const char *str) { value = std::string(str); }
meta_value(bool b) { value = b; }
meta_value(int32_t num) { value = uint64_t(num); }
meta_value(uint32_t num) { value = uint64_t(num); }