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

Commit131926a

Browse files
committed
Remove useless check for NULL subexpression.
Coverity rightly gripes that it's silly to have a test here whenthe adjacent ExecEvalExpr() would choke on a NULL expression pointer.Petr Jelinek
1 parent302ac7f commit131926a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎src/backend/access/tablesample/tablesample.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,13 @@ tablesample_init(SampleScanState *scanstate, TableSampleClause *tablesample)
103103
fcinfo.argnull[1]= false;
104104
}
105105

106-
/* Rest of the arguments come from user.*/
106+
/* Rest of the arguments come from user. */
107107
i=2;
108108
foreach(arg,args)
109109
{
110110
Expr*argexpr= (Expr*)lfirst(arg);
111111
ExprState*argstate=ExecInitExpr(argexpr, (PlanState*)scanstate);
112112

113-
if (argstate==NULL)
114-
{
115-
fcinfo.argnull[i]= true;
116-
fcinfo.arg[i]= (Datum)0;;
117-
}
118-
119113
fcinfo.arg[i]=ExecEvalExpr(argstate,econtext,
120114
&fcinfo.argnull[i],NULL);
121115
i++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp