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
|
801 | 801 | bool CSiteManager::ClearBookmarks(wxString sitePath) |
802 | 802 | { |
803 | 803 | wxChar c = sitePath.empty() ? 0 : sitePath[0]; |
804 | | if (sitePath[0] != '0') |
| 804 | if (c != '0') |
805 | 805 | return false; |
806 | 806 | |
807 | 807 | sitePath = sitePath.Mid(1); |