From 8d20b7823150b5532dd0a80f8dd448ebde31176a Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 23 Dec 2010 09:37:41 +0000 Subject: [PATCH] Fixed bug with regexec, thanks to Christian Richter SVN revision: 2348 --- src/elogd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index eeec62f2..334f503a 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -19757,9 +19757,11 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa setparam(attr_list[i], str); } - status = regexec(re_buf + 1 + i, attrib[i], 10, pmatch, 0); - if (status == REG_NOMATCH) - break; + if (isparam(attr_list[i])) { + status = regexec(re_buf + 1 + i, attrib[i], 10, pmatch, 0); + if (status == REG_NOMATCH) + break; + } } }