changeset 26402:bb8d66018bd7 stable

pt-mat.cc: Fix static analyzer detected issues (bug #55347). * pt-mat.cc (get_concat_class): Remove useless check for "c2 == c1" done earlier.
author Rik <rik@octave.org>
date Thu, 03 Jan 2019 10:18:16 -0800
parents 8716297db545
children 6c65dafb72ca
files libinterp/parse-tree/pt-mat.cc
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-mat.cc	Thu Jan 03 10:07:23 2019 -0800
+++ b/libinterp/parse-tree/pt-mat.cc	Thu Jan 03 10:18:16 2019 -0800
@@ -85,9 +85,7 @@
 
         // Order is important here...
 
-        if (c1 == "struct" && c2 == c1)
-          retval = c1;
-        else if (c1 == "cell" || c2 == "cell")
+        if (c1 == "cell" || c2 == "cell")
           retval = "cell";
         else if (c1_is_char && c2_is_built_in_type)
           retval = c1;