Ticket #9573: 0001-One-more-runtime-errors-cause-by-0-and-the-likes.patch

File 0001-One-more-runtime-errors-cause-by-0-and-the-likes.patch, 798 bytes (added by Francois Ferrand, 6 years ago)
  • src/interface/sitemanager.cpp

    From 0faf7509d7c652ca5da741694f5a9cf4ee8d8e58 Mon Sep 17 00:00:00 2001
    From: Francois Ferrand <thetypz@gmail.com>
    Date: Wed, 11 Jun 2014 10:02:54 +0200
    Subject: [PATCH] One more runtime errors cause by [0] and the likes.
    
    ---
     src/interface/sitemanager.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/interface/sitemanager.cpp b/src/interface/sitemanager.cpp
    index 99f3e41..ee7a2f6 100644
    a b bool CSiteManager::AddBookmark(wxString sitePath, const wxString& name, const wx 
    801801bool CSiteManager::ClearBookmarks(wxString sitePath)
    802802{
    803803    wxChar c = sitePath.empty() ? 0 : sitePath[0];
    804     if (sitePath[0] != '0')
     804    if (c != '0')
    805805        return false;
    806806
    807807    sitePath = sitePath.Mid(1);