X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdom%2Furi.cpp;h=13b76c413d3a962a685bd505cec1e5be3a842609;hb=723b4d8bde8ce8503d1d01ee0f2e3548ec0dc88c;hp=1747f42f92363bfb46048b45aca722a118317a5d;hpb=e64dcdb6c95fa2ed4d52321e66af856f043fab9b;p=inkscape.git diff --git a/src/dom/uri.cpp b/src/dom/uri.cpp index 1747f42f9..13b76c413 100644 --- a/src/dom/uri.cpp +++ b/src/dom/uri.cpp @@ -35,7 +35,7 @@ #include #include - +#include namespace org @@ -49,7 +49,7 @@ namespace dom typedef struct { int ival; - char *sval; + char const *sval; int port; } LookupEntry; @@ -329,6 +329,9 @@ static int find(const std::vector &str, int ch, int startpos) static int findLast(const std::vector &str, int ch) { + // TODO FIXME BUGBUG + // This loop appears to be infinite, so it is probably not being called. + // Test for a problem, then fix after it has been observed locking up. for (unsigned int i = str.size()-1 ; i>=0 ; i--) { if (ch == str[i]) @@ -572,7 +575,7 @@ int URI::peek(int p) -int URI::match(int p0, char *key) +int URI::match(int p0, char const *key) { int p = p0; while (p < parselen)