Handle bad est espec properly
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Oct 2004 12:23:25 +0000 (12:23 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Oct 2004 12:23:25 +0000 (12:23 +0000)
data1/d1_espec.c

index 606cacf..1cad41c 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: d1_espec.c,v 1.3 2004-09-28 10:15:03 adam Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
+/* $Id: d1_espec.c,v 1.4 2004-10-05 12:23:25 adam Exp $
+   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
 This file is part of the Zebra server.
@@ -200,6 +200,10 @@ static Z_ETagUnit *read_tagunit(char *buf, NMEM nmem,
        else
            t->occurrences = 0;
     }
+    else
+    {
+       return 0;
+    }
     return u;
 }