Taking the address of a temporary is a bug, even if it seems to work fine.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@203 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2002-07-14 01:31:18 +00:00
parent 0186b32eac
commit 4aec725457

View File

@ -350,7 +350,8 @@ status_t Hey(BMessenger* target, char* argv[], int32* argx, int32 argc, BMessage
bool found=false;
if (target && target->IsValid()) {
BMessage rply;
if(target->SendMessage(&BMessage(B_GET_SUPPORTED_SUITES), &rply)==B_OK){
BMessage req(B_GET_SUPPORTED_SUITES);
if(target->SendMessage(&req, &rply)==B_OK){
// if all goes well, rply contains all kinds of property infos
int32 j=0;
void *voidptr;