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

Commit331695a

Browse files
committed
Fix thinko in new ECPG "PREPARE AS" code.
ecpg_register_prepared_stmt() is pretty obviously checking the wrongvariable while trying to detect malloc failure. Error in commita1dc6ab, spotted by Coverity.
1 parent9679345 commit331695a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/interfaces/ecpg/ecpglib/prepare.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ecpg_register_prepared_stmt(struct statement *stmt)
8585
return false;
8686

8787
prep_stmt= (structstatement*)ecpg_alloc(sizeof(structstatement),lineno);
88-
if (!stmt)
88+
if (!prep_stmt)
8989
{
9090
ecpg_free(this);
9191
return false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp