Roster: Fix PVS 460
Replace do...while(false) loop with while(true)... loop, so that 'continue' at line 1968 can continue loop. Change-Id: I4d64ff2699ad0837f29d49c63b683b134c4ccc1e Reviewed-on: https://review.haiku-os.org/c/1149 Reviewed-by: Fredrik Holmqvist <[email protected]> Reviewed-by: Barrett17 <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
9e1ce8ed92
commit
5f48948f7f
@@ -1873,7 +1873,7 @@ BRoster::_LaunchApp(const char* mimeType, const entry_ref* ref,
|
||||
port_id appPort = -1;
|
||||
uint32 appToken = 0;
|
||||
|
||||
do {
|
||||
while (true) {
|
||||
// find the app
|
||||
entry_ref appRef;
|
||||
char signature[B_MIME_TYPE_LENGTH];
|
||||
@@ -1971,7 +1971,9 @@ BRoster::_LaunchApp(const char* mimeType, const entry_ref* ref,
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (false);
|
||||
// Don't try again
|
||||
break;
|
||||
}
|
||||
|
||||
if (alreadyRunning && current_team() == team) {
|
||||
// The target team is calling us, so we don't send it the message
|
||||
|
||||
Reference in New Issue
Block a user