return FromJson<T>(v.get<picojson::object>(), names...);
}
-void encode_binary_in_string(const std::vector<std::uint8_t>& buf, std::string& str);
-void decode_binary_from_string(const std::string& str, std::vector<std::uint8_t>& buf);
+void encode_binary_in_string(const std::vector<std::uint8_t> &buf, std::string &str);
+void decode_binary_from_string(const std::string &str, std::vector<std::uint8_t> &buf);
} // common
}
}
#endif
- locale_t loc = newlocale(LC_NUMERIC_MASK, "C", (locale_t) 0);
+ locale_t loc = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
f = strtod_l(num_str.c_str(), &endp, loc);
freelocale(loc);
if (endp == num_str.c_str() + num_str.size()) {
ScopeLogger("Privilege access checked using Cynara.");
char* smack_label = nullptr;
+ SCOPE_EXIT {
+ free(smack_label);
+ };
+
char path[1024] = {
0,
};
uid_ = std::to_string(uid);
smack_label_ = smack_label;
-
- free(smack_label);
} else {
LoggerE("Failed to get smack label");
return;
return PlatformResult{};
}
-NodeInfo::NodeInfo(const std::string& name) : name_{name} {
+NodeInfo::NodeInfo(const std::string& name) : name_{name}, node_info_{nullptr} {
ScopeLogger("name: [%s] ", name.c_str());
}