]> source.dussan.org Git - rspamd.git/commitdiff
* Misprint in optimizer function
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 19 Mar 2009 16:12:15 +0000 (19:12 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 19 Mar 2009 16:12:15 +0000 (19:12 +0300)
src/plugins/regexp.c

index 461888abf60e9f47ef073d8876f2892581293924..6509a4e5ee59d1a42aa3b8cc604000a4db403c5b 100644 (file)
@@ -280,11 +280,11 @@ optimize_regexp_expression (struct expression **e, GQueue *stack, gboolean res)
                                continue;
                        }
                        else if (it->content.operation == '&' && res == FALSE) {
-                               e = &it;
+                               *e = it;
                                ret = TRUE;
                        }
                        else if (it->content.operation == '|' && res == TRUE) {
-                               e = &it;
+                               *e = it;
                                ret = TRUE;
                        }
                        break;