> > Using strcasecmp is wrong, since that would mean that anyonw entering the > > smae font as the fallback would have a memory leak. The test is there to > > not try to free string literals. > > I see. But on the other hand, it wasn't comparing pointers, it was > comparing a pointer with a string literal..
A string literal *is* a pointer. It may be the same pointer every time it is used, or it may be a different pointer. Most compilers, if not all, would use the same pointer every time, but there is no guarantee. Ciao Dominik ^_^ ^_^ -- Dominik Vogt, dominik.vogt (at) gmx.de
signature.asc
Description: Digital signature