Initialize local to prevent gcc -O warning
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 16 Jun 2004 20:30:47 +0000 (20:30 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 16 Jun 2004 20:30:47 +0000 (20:30 +0000)
isamb/isamb.c
rset/rsbool.c
util/zebramap.c

index cc242b4..ed3acfd 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: isamb.c,v 1.45 2004-06-08 15:15:51 adam Exp $
+/* $Id: isamb.c,v 1.46 2004-06-16 20:34:25 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -505,7 +505,7 @@ int insert_int (ISAMB b, struct ISAMB_block *p, void *lookahead_item,
     struct ISAMB_block *sub_p1 = 0, *sub_p2 = 0;
     char sub_item[DST_ITEM_MAX];
     int sub_size;
-    int more;
+    int more = 0;
 
     *sp = 0;
 
index bc2c692..76d3e7d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: rsbool.c,v 1.29 2004-06-09 11:11:33 adam Exp $
+/* $Id: rsbool.c,v 1.30 2004-06-16 20:32:07 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -227,7 +227,6 @@ static int r_forward (RSET ct, RSFD rfd, void *buf, int *term_index,
 {
     struct rset_bool_info *info = ((struct rset_bool_rfd*)rfd)->info;
     struct rset_bool_rfd *p = (struct rset_bool_rfd *) rfd;
-    int cmp=0;
     int rc;
 
 #if RSET_DEBUG
index 8b24c04..0d1cf07 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zebramap.c,v 1.31 2004-06-15 09:29:31 adam Exp $
+/* $Id: zebramap.c,v 1.32 2004-06-16 20:30:47 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -573,7 +573,7 @@ int zebra_replace_sub(ZebraMaps zms, unsigned reg_id, const char *ex_list,
     {
        struct zm_token *token;
        char replace_string[128];
-       int replace_out;
+       int replace_out = 0;
        int replace_in = 0;
 
        for (token = zm->replace_tokens; !replace_in && token;