RecorderWindow.cpp: fix comparison between pointer and integer

Signed-off-by: Dario Casalinuovo <[email protected]>
This commit is contained in:
Murai Takashi
2016-07-03 15:31:58 +02:00
committed by Dario Casalinuovo
parent b4e751b890
commit f7fceb6920
+1 -1
View File
@@ -1339,7 +1339,7 @@ RecorderWindow::CopyTarget(BMessage *msg)
if (!strcasecmp(type, B_FILE_MIME_TYPE)) {
const char *name;
entry_ref dir;
if (msg->FindString("be:filetypes") == B_OK
if (msg->FindString("be:filetypes") != NULL
&& msg->FindString("name", &name) == B_OK
&& msg->FindRef("directory", &dir) == B_OK) {
BDirectory directory(&dir);