xfree (logfile); logfile = name? xstrdup (name) : NULL; unlock_log ();
  void __stdcall setLogFile (const char *name)  {     lock_log ();    if (logfp)      {        fclose (logfp);        logfp = NULL;      }        xfree (logfile);    logfile = name? xstrdup (name) : NULL;    unlock_log ();  }