You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/04/22 16:49:33 UTC

[lucy-commits] svn commit: r1328889 - /lucy/trunk/clownfish/src/CFCHierarchy.c

Author: nwellnhof
Date: Sun Apr 22 14:49:32 2012
New Revision: 1328889

URL: http://svn.apache.org/viewvc?rev=1328889&view=rev
Log:
Fix possible segfault after CFC compilation error

Modified:
    lucy/trunk/clownfish/src/CFCHierarchy.c

Modified: lucy/trunk/clownfish/src/CFCHierarchy.c
URL: http://svn.apache.org/viewvc/lucy/trunk/clownfish/src/CFCHierarchy.c?rev=1328889&r1=1328888&r2=1328889&view=diff
==============================================================================
--- lucy/trunk/clownfish/src/CFCHierarchy.c (original)
+++ lucy/trunk/clownfish/src/CFCHierarchy.c Sun Apr 22 14:49:32 2012
@@ -305,6 +305,7 @@ S_parse_cf_files(CFCHierarchy *self, con
             }
             self->classes[self->num_classes++]
                 = (CFCClass*)CFCBase_incref((CFCBase*)classes_in_file[j]);
+            self->classes[self->num_classes] = NULL;
         }
         CFCBase_decref((CFCBase*)file);
         CFCBase_decref((CFCBase*)file_spec);