commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/geas/lib/classdefs classdata.c


From: Neil Tiffin
Subject: gnue/geas/lib/classdefs classdata.c
Date: Sat, 26 May 2001 07:24:24 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/05/26 07:24:23

Modified files:
        geas/lib/classdefs: classdata.c 

Log message:
        Correct list base field not being marked as ignored causing duplicate 
fields to be processed.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/classdata.c.diff?cvsroot=OldCVS&tr1=1.51&tr2=1.52&r1=text&r2=text

Patches:
Index: gnue/geas/lib/classdefs/classdata.c
diff -u gnue/geas/lib/classdefs/classdata.c:1.51 
gnue/geas/lib/classdefs/classdata.c:1.52
--- gnue/geas/lib/classdefs/classdata.c:1.51    Fri May 25 15:11:23 2001
+++ gnue/geas/lib/classdefs/classdata.c Sat May 26 07:24:23 2001
@@ -22,7 +22,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 
-   $Id: classdata.c,v 1.51 2001/05/25 22:11:23 ntiffin Exp $
+   $Id: classdata.c,v 1.52 2001/05/26 14:24:23 ntiffin Exp $
    
 */
 
@@ -484,7 +484,7 @@
 odl_filenamelist *
 odl_filenamelist_add (odl_filenamelist * list, const char *filename)
 {
-  char *f;
+  char *f = NULL;
 
   g_assert (filename != NULL);
   if (filename)
@@ -1863,6 +1863,8 @@
   g_assert (i != NULL);
 
   fl = (odl_field *) i;
+  ((odl_base *) i)->type = IT_ignore;  /* mark old item as not needed */
+                                       /* TODO should be able to reuse */
   cont = (odl_class *) fl->base.parent;
   load = odl_find_class (((odl_base *) i)->tree, i->datatypeclass, NULL);
   if (!load)
@@ -2287,7 +2289,7 @@
   GList *s;
   GList *t;
   GList *lst;
-  odl_item *it;
+  odl_item *it = NULL;
   char *buf;
   g_assert (item != NULL);
   g_assert (out != NULL);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]