diff options
author | NIIBE Yutaka <[email protected]> | 2020-02-12 03:51:16 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-02-12 03:51:16 +0000 |
commit | 29eb843fa52242627dec79840e6bc5be5ed98cc7 (patch) | |
tree | e0028ed51bb7273502eae9463aa84950cec9e9e2 /regexp/jimregexp.h | |
parent | regexp: Fix use of regexp in g10/trustdb.c. (diff) | |
download | gnupg-29eb843fa52242627dec79840e6bc5be5ed98cc7.tar.gz gnupg-29eb843fa52242627dec79840e6bc5be5ed98cc7.zip |
regexp: Check if ->pmatch != NULL.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'regexp/jimregexp.h')
-rw-r--r-- | regexp/jimregexp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regexp/jimregexp.h b/regexp/jimregexp.h index b7598d4b3..581b7104c 100644 --- a/regexp/jimregexp.h +++ b/regexp/jimregexp.h @@ -37,7 +37,7 @@ typedef struct { * it anyway. */ -typedef struct regexp { +struct regexp { /* -- public -- */ int re_nsub; /* number of parenthesized subexpressions */ @@ -64,9 +64,9 @@ typedef struct regexp { /* Input to regexec() */ regmatch_t *pmatch; /* submatches will be stored here */ int nmatch; /* size of pmatch[] */ -} regexp; +}; -typedef regexp regex_t; +typedef struct regexp regex_t; #define REG_EXTENDED 0 #define REG_NEWLINE 1 |