InterpretDebug-mods: calculate OpName length
[nedit-bw.git] / fix-NULL-dereference.patch
bloba83250739df8e30efd03a067952120dc512add9b
1 ---
3 source/regularExp.c | 6 +++---
4 1 files changed, 3 insertions(+), 3 deletions(-)
6 diff --quilt old/source/regularExp.c new/source/regularExp.c
7 --- old/source/regularExp.c
8 +++ new/source/regularExp.c
9 @@ -2703,13 +2703,10 @@ int ExecRE(regexp *prog, const char* str
10 unsigned char **e_ptr;
11 int ret_val = 0;
12 unsigned char tempDelimitTable [256];
13 int i;
15 - s_ptr = (unsigned char **) prog->startp;
16 - e_ptr = (unsigned char **) prog->endp;
18 /* Check for valid parameters. */
20 if (prog == NULL || string == NULL) {
21 reg_error ("NULL parameter to `ExecRE\'");
22 goto SINGLE_RETURN;
23 @@ -2720,10 +2717,13 @@ int ExecRE(regexp *prog, const char* str
24 if (U_CHAR_AT (prog->program) != MAGIC) {
25 reg_error ("corrupted program");
26 goto SINGLE_RETURN;
29 + s_ptr = (unsigned char **) prog->startp;
30 + e_ptr = (unsigned char **) prog->endp;
32 /* If caller has supplied delimiters, make a delimiter table */
34 if (delimiters == NULL) {
35 Current_Delimiters = Default_Delimiters;
36 } else {