summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 09:24:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 11:29:18 +0000
commit6ebd4a9925b47f2562a91a7a44aea84d95a0047c (patch)
tree87e43fa5b8332c77f97b7c6d9542884347b229a8 /sal
parente357c93e7b64784ff383a97b00c553a64f75d3b0 (diff)
coverity#440517 Dereference before null check
Change-Id: I9c09333d0879ba8dc9ef8c4cb2c1d9f0b3654d45
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/tempfile.c3
1 files changed, 1 insertions, 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;
}