Skip to content

Commit

Permalink
Merge pull request #4170 from 0xB0D/master+alarms-fix
Browse files Browse the repository at this point in the history
Fix alarms() out of scope
  • Loading branch information
connortechnology authored Oct 8, 2024
2 parents a0a95d8 + 1136ef9 commit a0398dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zm_monitor_onvif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,9 @@ int SOAP_ENV__Fault(struct soap *soap, char *faultcode, char *faultstring, char
#endif

void Monitor::ONVIF::SetNoteSet(Event::StringSet &noteSet) {
if (alarms.empty()) return;
#ifdef WITH_GSOAP
if (alarms.empty()) return;

std::string note = "";
for (auto it = alarms.begin(); it != alarms.end(); ++it) {
note = it->first + "/" + it->second;
Expand Down

0 comments on commit a0398dd

Please sign in to comment.