Fixed problem with auto index and missing attribute

SVN revision: 2076
This commit is contained in:
Stefan Ritt 2008-03-09 15:38:17 +00:00
parent b3e3cf0ceb
commit 5149f9ae59

View File

@ -8630,7 +8630,7 @@ auto-increment tags */
el_retrieve(lbs, message_id, NULL, attr_list, attrib, lbs->n_attr, NULL, 0, NULL, NULL, att, NULL, NULL);
/* if date part changed, start over with index */
if (strncmp(attrib[index], retstr, loc) != 0)
if (strlen(attrib[index]) > 0 && strncmp(attrib[index], retstr, loc) != 0)
old_index = 0;
else
/* retrieve old index */