/* This file is part of the Zebra server.
- Copyright (C) 1994-2009 Index Data
+ Copyright (C) 1994-2010 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
}
*len += n->u.data.len;
}
- if (n->which == DATA1N_tag)
+ if (n->which == DATA1N_tag && *len == 0)
n = n->child;
else if (n->which == DATA1N_data)
n = n->next;
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab