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

Commit7c7f72c

Browse files
Maxim Orlovpashkinelfe
Maxim Orlov
authored andcommitted
Silence svace warnings about dereferenced NULL
1 parent24d08e8 commit7c7f72c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎vops.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,6 +2955,12 @@ Datum vops_import(PG_FUNCTION_ARGS)
29552955
caseVOPS_INTERVAL:
29562956
{
29572957
Interval*it=DatumGetIntervalP(val);
2958+
2959+
if (it==NULL) {
2960+
elog(ERROR,"NULL intervals are not supported");
2961+
break;
2962+
}
2963+
29582964
if (it->day||it->month)
29592965
elog(ERROR,"Day, month and year intervals are not supported");
29602966
((vops_int8*)tile)->payload[j]=it->time;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp