From: Eric Bollengier Date: Wed, 4 Apr 2007 21:30:20 +0000 (+0000) Subject: ebl fix X-Git-Tag: Release-7.0.0~6616 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8260ce675e4c20f39232e6550085aed7f672c473;p=bacula%2Fbacula ebl fix git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4511 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/testing/breg.c b/bacula/patches/testing/breg.c index 1dee7128bb..976a17cc6a 100644 --- a/bacula/patches/testing/breg.c +++ b/bacula/patches/testing/breg.c @@ -393,19 +393,19 @@ char *bregexp_build_where(char *strip_prefix, *str_tmp = *ret = '\0'; - if (*strip_prefix) { + if (strip_prefix) { len += bsnprintf(ret, str_size - len, "!%s!!", bregexp_escape_string(str_tmp, strip_prefix, sep)); } - if (*add_suffix) { + if (add_suffix) { if (len) ret[len++] = ','; len += bsnprintf(ret + len, str_size - len, "!([^/])$!$1%s!", bregexp_escape_string(str_tmp, add_suffix, sep)); } - if (*add_prefix) { + if (add_prefix) { if (len) ret[len++] = ','; len += bsnprintf(ret + len, str_size - len, "!^!%s!",