Move declaration to avoid warning when compiling wo Libxml2
authorAdam Dickmeiss <adam@indexdata.dk>
Sat, 1 Mar 2014 13:51:29 +0000 (14:51 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Sat, 1 Mar 2014 13:51:29 +0000 (14:51 +0100)
src/srwutil.c

index cb00278..40c9735 100644 (file)
@@ -376,9 +376,9 @@ int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
          !yaz_strcmp_del("application/x-www-form-urlencoded",
                          content_type, "; ")))
     {
-        char *db = "Default";
         const char *p0 = hreq->path, *p1;
 #if YAZ_HAVE_XML2
+        char *db = "Default";
         const char *operation = 0;
         char *version = 0;
         char *query = 0;