summaryrefslogtreecommitdiff
path: root/cli_ure
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-20 19:21:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-21 18:18:26 +0200
commitd1771e8de2f49193821d281239cc6b99c7c692e4 (patch)
tree2e756b203c50d0ee53c1b9bfbada00a962252499 /cli_ure
parente8db509ee41369c9f805a8ed1a4447b5c03962be (diff)
pvs-studio: Potentially uninitialized pointer 'ret_type' used.
Change-Id: I2f6faf1264a62012724d9fe34352a76ea5491717 Reviewed-on: https://gerrit.libreoffice.org/62096 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cli_ure')
-rw-r--r--cli_ure/source/climaker/climaker_emit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_ure/source/climaker/climaker_emit.cxx b/cli_ure/source/climaker/climaker_emit.cxx
index 24eb3e455754..ed864e18298f 100644
--- a/cli_ure/source/climaker/climaker_emit.cxx
+++ b/cli_ure/source/climaker/climaker_emit.cxx
@@ -273,7 +273,7 @@ Assembly ^ TypeEmitter::type_resolve(
::System::Object ^, ::System::ResolveEventArgs ^ args )
{
::System::String ^ cts_name = args->Name;
- ::System::Type ^ ret_type;
+ ::System::Type ^ ret_type = nullptr;
iface_entry ^ entry = dynamic_cast< iface_entry ^ >(m_incomplete_ifaces[cts_name] );
if (nullptr != entry)