X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Freqstat.c;h=cbe1c72706ea50f2edcfcb42d5e3faf743325528;hb=56c91062e3ba47c3519998b5afb35a2624db78bd;hp=2f51c6d6de52e6efcf841f819ad29abc70515975;hpb=ca63c1a6815698ee09c6da720d80c538e04e98eb;p=doldaconnect.git diff --git a/daemon/reqstat.c b/daemon/reqstat.c index 2f51c6d..cbe1c72 100644 --- a/daemon/reqstat.c +++ b/daemon/reqstat.c @@ -56,7 +56,7 @@ void filelog(char *format, ...) t = ctime(&now); if((p = strchr(t, '\n')) != NULL) *p = 0; - fprintf(out, "%s: %s\n", p, b); + fprintf(out, "%s: %s\n", t, b); free(b); fclose(out); } @@ -117,7 +117,7 @@ static int chfile(struct configvar *var, void *uudata) { if(fn != NULL) free(fn); - if(var->val.str[0] == L'0') { + if(var->val.str[0] == L'\0') { fn = NULL; } else { if((fn = icwcstombs(var->val.str, NULL)) == NULL)