COPKGManager: remove useless err_msg var, replaced by tmp_str

This commit is contained in:
2015-05-25 15:31:20 +02:00
parent 9a6aae8f49
commit 79f66537f0
2 changed files with 1 additions and 3 deletions

View File

@@ -427,7 +427,7 @@ int COPKGManager::doUpdate()
{
int r = execCmd(pkg_types[OM_UPDATE]);
if (r == -1) {
string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE)) + "\n" + err_msg;
string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE));
DisplayErrorMessage(msg.c_str());
return r;
}
@@ -675,7 +675,6 @@ int COPKGManager::execCmd(const char *cmdstr, bool verbose, bool acknowledge)
int res = 0;
has_err = false;
tmp_str.clear();
err_msg = "";
bool ok = true;
if (verbose) {
//create CShellWindow object