registrar: Add missing initialization of error.

Spotted by korli.
This commit is contained in:
Augustin Cavalier 2019-07-27 13:00:38 -04:00
parent 46511867cc
commit 32f97c7c1e

View File

@ -681,7 +681,7 @@ TRoster::HandleGetAppInfo(BMessage* request)
// get the info
RosterAppInfo* info = NULL;
status_t error;
status_t error = B_OK;
if (hasTeam) {
info = fRegisteredApps.InfoFor(team);
if (info == NULL)
@ -732,7 +732,7 @@ TRoster::HandleGetAppList(BMessage* request)
// get the parameters
const char* signature;
error = request->FindString("signature", &signature);
// reply to the request
if (error == B_OK) {
BMessage reply(B_REG_SUCCESS);