Fix warning
[yaz-moved-to-github.git] / zoom / zoom-c.c
index 267bb2c..27ae6f9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: zoom-c.c,v 1.30 2002-05-19 15:39:54 oleg Exp $
+ * $Id: zoom-c.c,v 1.32 2002-05-21 19:39:57 adam Exp $
  *
  * ZOOM layer for C, connections, result sets, queries.
  */
@@ -729,7 +729,7 @@ static int ZOOM_connection_send_init (ZOOM_connection c)
        
        yaz_oi_APDU(apdu, &oi);
        
-       if (oi_unit = yaz_oi_update(oi, c->odr_out, NULL, 0, 0))
+       if ((oi_unit = yaz_oi_update(oi, c->odr_out, NULL, 0, 0)))
        {
                ODR_MASK_SET(ireq->options, Z_Options_negotiationModel);
                
@@ -1631,7 +1631,7 @@ static void handle_apdu (ZOOM_connection c, Z_APDU *apdu)
                
                if (p)
                {
-                       char *charset, *lang;
+                       char *charset=NULL, *lang=NULL;
                        int selected;
                        
                        yaz_get_response_charneg(tmpmem, p, &charset, &lang, &selected);