From 4aec725457e51d0b6c5a4040564d54404b293b8b Mon Sep 17 00:00:00 2001 From: beveloper Date: Sun, 14 Jul 2002 01:31:18 +0000 Subject: [PATCH] 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 --- src/tools/hey/hey.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/hey/hey.cpp b/src/tools/hey/hey.cpp index f87e0283cf..116b4a8a74 100644 --- a/src/tools/hey/hey.cpp +++ b/src/tools/hey/hey.cpp @@ -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;