aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-part.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-18 07:54:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-18 07:54:01 +0800
commitbe6335128da92389defd81dc58132387f1f400d8 (patch)
tree43d88cc87f2d4ffef294159f7acb7a4a84c5d580 /filter/filter-part.c
parentb16a04e98d4d6afd4507fcd8e9bf31358f1b6344 (diff)
downloadgsoc2013-evolution-be6335128da92389defd81dc58132387f1f400d8.tar
gsoc2013-evolution-be6335128da92389defd81dc58132387f1f400d8.tar.gz
gsoc2013-evolution-be6335128da92389defd81dc58132387f1f400d8.tar.bz2
gsoc2013-evolution-be6335128da92389defd81dc58132387f1f400d8.tar.lz
gsoc2013-evolution-be6335128da92389defd81dc58132387f1f400d8.tar.xz
gsoc2013-evolution-be6335128da92389defd81dc58132387f1f400d8.tar.zst
gsoc2013-evolution-be6335128da92389defd81dc58132387f1f400d8.zip
Since we are now using filter-option widgets in place of system-flag, we
2001-03-17 Jeffrey Stedfast <fejj@ximian.com> * filter-option.c (build_code): Since we are now using filter-option widgets in place of system-flag, we do not need a "code" part so if there isn't a code part, don't build it. (clone): Updated to allow NULL code parts. svn path=/trunk/; revision=8789
Diffstat (limited to 'filter/filter-part.c')
-rw-r--r--filter/filter-part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter-part.c b/filter/filter-part.c
index 5d9df3a617..1243b6105e 100644
--- a/filter/filter-part.c
+++ b/filter/filter-part.c
@@ -414,7 +414,7 @@ filter_part_expand_code (FilterPart *ff, const char *source, GString *out)
FilterElement *fe;
start = source;
- while ( (newstart = strstr (start, "${"))
+ while (start && (newstart = strstr (start, "${"))
&& (end = strstr (newstart+2, "}")) ) {
len = end - newstart - 2;
if (len + 1 > namelen) {