From 29eb843fa52242627dec79840e6bc5be5ed98cc7 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 12 Feb 2020 12:51:16 +0900 Subject: regexp: Check if ->pmatch != NULL. Signed-off-by: NIIBE Yutaka --- regexp/jimregexp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'regexp/jimregexp.h') 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 -- cgit v1.2.3