From 32f97c7c1e2abc55cbcbee45d9f9a4eabf5954e3 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 27 Jul 2019 13:00:38 -0400 Subject: [PATCH] registrar: Add missing initialization of error. Spotted by korli. --- src/servers/registrar/TRoster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/registrar/TRoster.cpp b/src/servers/registrar/TRoster.cpp index 6e95f894d4..d72a020eef 100644 --- a/src/servers/registrar/TRoster.cpp +++ b/src/servers/registrar/TRoster.cpp @@ -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);