that:
type* pointer = 0;
for ( ... ; pointer = ... ; ... ) {
if (pointer->someValue () == expectedValue) {
break;
}
}
if (pointer) { ... }
But pointer will always have a value, because it gets a value in the
for loop. I changed it to:
type* pointer = 0;
bool found = false;
for ( ... ; pointer = ... ; ... ) {
if (pointer->someValue () == expectedValue) {
found = true;
break;
}
}
if (!found) {
pointer = 0;
}
if (pointer) { ... }
Now it does not crash anymore, but I still do not receive my IMAP mails
;(
svn path=/trunk/KDE/kdepim/; revision=677592