Skip to content

Commit

Permalink
Merge pull request #92 from phunkyfish/string-nullptr
Browse files Browse the repository at this point in the history
Fix string nullptr assignment to ConnectionStateChange
  • Loading branch information
manuelm authored Jun 26, 2020
2 parents 4985214 + de97075 commit d7378fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pvr.dvbviewer/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.dvbviewer"
version="6.0.0"
version="6.0.1"
name="DVBViewer Client"
provider-name="Manuel Mausz">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions pvr.dvbviewer/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
6.0.1:
[fixed] string nullptr assignment to ConnectionStateChange

6.0.0:
[updated] PVR API 7.0.0
[updated] Rework addon to support new API interface
Expand Down
3 changes: 1 addition & 2 deletions src/DvbData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1714,10 +1714,9 @@ void Dvb::SetConnectionState(PVR_CONNECTION_STATE state,
va_list argList;
va_start(argList, message);
tmp = StringUtils::FormatV(message, argList);
message = tmp.c_str();
va_end(argList);
}
ConnectionStateChange(m_settings.m_hostname, m_state, message);
ConnectionStateChange(m_settings.m_hostname, m_state, tmp);
}
}

Expand Down

0 comments on commit d7378fe

Please sign in to comment.