• Welcome to Valhalla Legends Archive.
 

sig test

Started by MoNksBaNe_Agahnim, November 15, 2003, 06:48 PM

Previous topic - Next topic

MoNksBaNe_Agahnim


xsemaphorex


iago

#2
Quote...
if( you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
   you->stfu();
   you->gtfo();
   delete(you);
}
....

I would recommend making sure that you is a valid pointer, since if you is null that'll crash.

I would recommend
...
if( you && you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
   you->stfu();
   you->gtfo();
   delete(you);
}
...


or

...
if( you != NULL && you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
   you->stfu();
   you->gtfo();
   delete(you);
}
...
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Eibro

Delete is not a function, it's an operator.
Eibro of Yeti Lovers.

iago

Quote from: Eibro on November 19, 2003, 03:23 PM
Delete is not a function, it's an operator.

That too! :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*