From 6ebd4a9925b47f2562a91a7a44aea84d95a0047c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 28 Jan 2014 09:24:48 +0000 Subject: [PATCH] coverity#440517 Dereference before null check Change-Id: I9c09333d0879ba8dc9ef8c4cb2c1d9f0b3654d45 --- sal/osl/unx/tempfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sal/osl/unx/tempfile.c b/sal/osl/unx/tempfile.c index 2aad4bbba613..53311b75cd4c 100644 --- a/sal/osl/unx/tempfile.c +++ b/sal/osl/unx/tempfile.c @@ -263,8 +263,7 @@ static oslFileError osl_create_temp_file_impl_( if (osl_File_E_None == osl_error) rtl_uString_assign(ppustr_temp_file_name, tmp_file_path); - if (tmp_file_path) - rtl_uString_release(tmp_file_path); + rtl_uString_release(tmp_file_path); return osl_error; }