sgl

diff src/log.c @ 5:0570e27e5ebc

pretty much done with the basic functionality and GLX shit
author John Tsiombikas <nuclear@siggraph.org>
date Fri, 13 May 2011 07:49:47 +0300
parents 648f8604d2b2
children 124195562f7e
line diff
     1.1 --- a/src/log.c	Thu May 12 11:04:10 2011 +0300
     1.2 +++ b/src/log.c	Fri May 13 07:49:47 2011 +0300
     1.3 @@ -17,5 +17,7 @@
     1.4  	vfprintf(fp, fmt, ap);
     1.5  	va_end(ap);
     1.6  
     1.7 -	fclose(fp);
     1.8 +	if(fp != stderr) {
     1.9 +		fclose(fp);
    1.10 +	}
    1.11  }