registrar: Add missing initialization of error.
Spotted by korli.
This commit is contained in:
@@ -681,7 +681,7 @@ TRoster::HandleGetAppInfo(BMessage* request)
|
|||||||
|
|
||||||
// get the info
|
// get the info
|
||||||
RosterAppInfo* info = NULL;
|
RosterAppInfo* info = NULL;
|
||||||
status_t error;
|
status_t error = B_OK;
|
||||||
if (hasTeam) {
|
if (hasTeam) {
|
||||||
info = fRegisteredApps.InfoFor(team);
|
info = fRegisteredApps.InfoFor(team);
|
||||||
if (info == NULL)
|
if (info == NULL)
|
||||||
@@ -732,7 +732,7 @@ TRoster::HandleGetAppList(BMessage* request)
|
|||||||
// get the parameters
|
// get the parameters
|
||||||
const char* signature;
|
const char* signature;
|
||||||
error = request->FindString("signature", &signature);
|
error = request->FindString("signature", &signature);
|
||||||
|
|
||||||
// reply to the request
|
// reply to the request
|
||||||
if (error == B_OK) {
|
if (error == B_OK) {
|
||||||
BMessage reply(B_REG_SUCCESS);
|
BMessage reply(B_REG_SUCCESS);
|
||||||
|
|||||||
Reference in New Issue
Block a user