Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lyskom-server-ceder-1616-generations-topgit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
9c298b35
Commit
9c298b35
authored
Dec 20, 1998
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(lookup_regexp): Attempt to allocate a fastmap.
parent
46de8282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/server/regex-match.c
src/server/regex-match.c
+7
-3
No files found.
src/server/regex-match.c
View file @
9c298b35
/*
* $Id: regex-match.c,v 1.1
7 1998/07/08 13:42:02
ceder Exp $
* $Id: regex-match.c,v 1.1
8 1998/12/20 19:45:04
ceder Exp $
* Copyright (C) 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
*/
static
const
char
*
rcsid
=
"$Id: regex-match.c,v 1.1
7 1998/07/08 13:42:02
ceder Exp $"
;
rcsid
=
"$Id: regex-match.c,v 1.1
8 1998/12/20 19:45:04
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -76,7 +76,11 @@ lookup_regexp (const String regexp,
pat_buf
.
translate
=
DEFAULT_COLLAT_TAB
;
pat_buf
.
translate
=
NULL
;
pat_buf
.
fastmap
=
0
;
/* We have to use malloc() instead of smalloc() when allocating
the fastmap, since regfree will use free() to free the memory.
If malloc fails here we simply continue without a fastmap. The
match will be a little slower, but that is not fatal. */
pat_buf
.
fastmap
=
malloc
(
256
);
pat_buf
.
allocated
=
0
;
pat_buf
.
buffer
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment