yaz_log(log_level, "zebra_chdir");
dir = res_get(zs->global_res, "chdir");
if (!dir)
- return;
+ return 0;
yaz_log(YLOG_DEBUG, "chdir %s", dir);
#ifdef WIN32
r = _chdir(dir);
if (f)
{
- if (fscanf(f, "%c %d", val, seqno))
+ if (fscanf(f, "%c %d", val, seqno) != 2)
{
yaz_log(YLOG_ERRNO|YLOG_WARN, "fscan fail %s",
state_fname);