From 8a7fc9b5a79fbfe7a5e3c224fc41aad98e2eb17d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Mar 2006 19:09:22 +0000 Subject: [PATCH] always return something in GetCommandForVerb() second argument, even if verb not found git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/mimetype.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index f9c9d23857..f5e986fe99 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -124,6 +124,11 @@ public: if ( idx ) *idx = n; } + else if ( idx ) + { + // different from any valid index + *idx = (size_t)-1; + } return s; } -- 2.47.2