Compare function pointers against 0 rather than nil.

This commit is contained in:
wkj 2004-07-09 01:54:06 +00:00
parent eac9e0183f
commit a87638642c
13 changed files with 15 additions and 15 deletions

View file

@ -35,7 +35,7 @@ memunload(Memimage *src, Rectangle r, uchar *data, int n)
* src is an obscured layer or data is unaligned
*/
if(dl->save && dx==0){
if(dl->refreshfn != nil)
if(dl->refreshfn != 0)
return -1; /* can't unload window if it's not Refbackup */
if(n > 0)
memlhide(src, r);