Return a value for function zebra_chdir
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 19 Jun 2009 12:59:51 +0000 (14:59 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 19 Jun 2009 12:59:51 +0000 (14:59 +0200)
index/zebraapi.c

index 343c89d..2b69a2d 100644 (file)
@@ -69,7 +69,7 @@ static int zebra_chdir(ZebraService zs)
     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);