Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf1a7239

Browse files
committed
scratch muß mit nullptr initialisiert werden.
1 parent80cb646 commitf1a7239

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎hyperscan.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ int main()
2929
constchar* re{R"(\[([^ ]{8}) \| ([^\]]{19})\] \((?:[^,]+, )?\d+\) [^ ]+ \[([^\]]+)\] RQST END \[[^\]]+\] *(\d+) ms)"};
3030

3131
hs_database_t* database;
32-
hs_scratch_t* scratch;
3332
hs_compile_error_t* compile_err;
3433

3534
if (hs_compile(re, HS_FLAG_DOTALL | HS_FLAG_SINGLEMATCH, HS_MODE_BLOCK,nullptr, &database, &compile_err) != HS_SUCCESS) {
@@ -38,6 +37,8 @@ int main()
3837
return1;
3938
}
4039

40+
hs_scratch_t* scratch =nullptr;
41+
4142
if (hs_alloc_scratch(database, &scratch) != HS_SUCCESS) {
4243
std::cout <<"Hyperscan unable to allocate scratch space." << std::endl;
4344
hs_free_database(database);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp