summaryrefslogtreecommitdiff
path: root/databases/mysql-query-browser/files/patch-regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql-query-browser/files/patch-regcomp.c')
-rw-r--r--databases/mysql-query-browser/files/patch-regcomp.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/databases/mysql-query-browser/files/patch-regcomp.c b/databases/mysql-query-browser/files/patch-regcomp.c
new file mode 100644
index 000000000000..6c68e2ccc7a7
--- /dev/null
+++ b/databases/mysql-query-browser/files/patch-regcomp.c
@@ -0,0 +1,21 @@
+--- mysql-query-browser/source/linux/gtksourceview/gtksourceview/gnu-regex/regcomp.c.orig Sun Apr 9 00:37:59 2006
++++ mysql-query-browser/source/linux/gtksourceview/gtksourceview/gnu-regex/regcomp.c Sun Apr 9 00:39:42 2006
+@@ -451,18 +451,6 @@
+ if (ret == REG_ERPAREN)
+ ret = REG_EPAREN;
+
+- /* We have already checked preg->fastmap != NULL. */
+- if (BE (ret == REG_NOERROR, 1))
+- /* Compute the fastmap now, since regexec cannot modify the pattern
+- buffer. This function nevers fails in this implementation. */
+- (void) re_compile_fastmap (preg);
+- else
+- {
+- /* Some error occurred while compiling the expression. */
+- re_free (preg->fastmap);
+- preg->fastmap = NULL;
+- }
+-
+ return (int) ret;
+ }
+ #ifdef _LIBC