From 97638e0c8281061fe9f88fa46d8b9895a896c707 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sat, 22 Mar 2025 21:33:23 -0500 Subject: [PATCH] Gui: Check return value from getDetail() Coverity issue 251377. Every other use of this method follows this idiom, update the last call to match. --- src/Gui/ViewProviderLink.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Gui/ViewProviderLink.cpp b/src/Gui/ViewProviderLink.cpp index a706205798..4c5790d87b 100644 --- a/src/Gui/ViewProviderLink.cpp +++ b/src/Gui/ViewProviderLink.cpp @@ -1534,8 +1534,9 @@ bool LinkView::linkGetDetailPath(const char *subname, SoFullPath *path, SoDetail return true; if(info.isLinked()) { - info.linkInfo->getDetail(false,childType,subname,det,path); - return true; + if (info.linkInfo->getDetail(false,childType,subname,det,path)) { + return true; + } } } if(isLinked()) {