mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
Fix assorted memory and static analysis errors
This commit is contained in:
committed by
Felipe Zimmerle
parent
8d0583eda4
commit
e95efa05cc
@@ -97,8 +97,10 @@ std::string const UniqueId::machineName() {
|
||||
|
||||
return std::string(machine_name);
|
||||
|
||||
#if defined(HAVE_SYS_UTSNAME_H) || defined(WIN32)
|
||||
failed:
|
||||
return std::string("");
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string const UniqueId::ethernetMacAddress() {
|
||||
@@ -221,8 +223,10 @@ std::string const UniqueId::ethernetMacAddress() {
|
||||
|
||||
end:
|
||||
return std::string(reinterpret_cast<const char *>(mac));
|
||||
#if defined(__linux__) || defined(__gnu_linux__) || defined(DARWIN) || defined(WIN32)
|
||||
failed:
|
||||
return std::string("");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user