va_list argp;
/* ignore log message if loglevel is not high enough */
- if (pcd && ll < pcd->conf.loglevel_arg)
+ if (!pcd || ll < pcd->conf.loglevel_arg)
return;
va_start(argp, fmt);
vfprintf(stderr, fmt, argp);
p->eof = 1;
return;
}
- if (p->status == CL_SENDING_STDIN) {
+ if (p->status == CL_SENDING) {
stdin_set_defaults(&sit);
sit.buf = para_malloc(sit.bufsize),
register_task(&sit.task);