summaryrefslogtreecommitdiff
authoralwin <alwin>2005-03-07 13:03:38 (UTC)
committer alwin <alwin>2005-03-07 13:03:38 (UTC)
commitc26df8eafe66bded4a4af4f95830fd2187bfa2ca (patch) (side-by-side diff)
tree561f0da611b70fe5c415bf636307289b9507e6e6
parent4515ff72db76ba63dcf3b29b19d930b7e083d508 (diff)
downloadopie-c26df8eafe66bded4a4af4f95830fd2187bfa2ca.zip
opie-c26df8eafe66bded4a4af4f95830fd2187bfa2ca.tar.gz
opie-c26df8eafe66bded4a4af4f95830fd2187bfa2ca.tar.bz2
fixed a very interesting crasher.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/documentlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/documentlist.cpp b/core/launcher/documentlist.cpp
index d2b9afa..b8bf4e0 100644
--- a/core/launcher/documentlist.cpp
+++ b/core/launcher/documentlist.cpp
@@ -390,7 +390,7 @@ void DocumentList::DiffAppLnks()
it1 = appLnkSet->children();
found = false;
while ( (i=it1.current()) ){
- if (strcmp(i->name().ascii(),j->name().ascii()) == 0)
+ if (j->name().ascii() && i->name().ascii() && strcmp(i->name().ascii(),j->name().ascii()) == 0)
found = true;
++it1;
}
@@ -406,7 +406,7 @@ void DocumentList::DiffAppLnks()
it2 = appLnkSet2->children();
found = false;
while ( (j=it2.current()) ){
- if (strcmp(i->name().ascii(),j->name().ascii()) == 0)
+ if (j->name().ascii() && i->name().ascii() && strcmp(i->name().ascii(),j->name().ascii()) == 0)
found = true;
++it2;
}