From 5149f9ae5914357a3b3ccfee133c89f7fae7aa52 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Sun, 9 Mar 2008 15:38:17 +0000 Subject: [PATCH] Fixed problem with auto index and missing attribute SVN revision: 2076 --- src/elogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index 88194779..3ef544b8 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -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 */