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

Commit6636f39

Browse files
committed
Check array for NULL, fix gcov call
1 parent14e97be commit6636f39

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

‎.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ img
33
travis
44
.git
55
.travis.yml
6+
7+
*.gcno
8+
*.gcda
9+
*.gcov
10+
*.so
11+
*.o

‎src/rum_arr_utils.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151

5252
#defineCHECKARRVALID(x) \
5353
do { \
54-
if (x) { \
54+
if (x == NULL) \
55+
ereport(ERROR, \
56+
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), \
57+
errmsg("array must not be NULL"))); \
58+
else if (x) { \
5559
if (ARR_NDIM(x) != NDIM && ARR_NDIM(x) != 0) \
5660
ereport(ERROR, \
5761
(errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR), \

‎travis/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if test -f regression.diffs; then cat regression.diffs; fi
9999
if [$status-ne 0 ];thenexit 1;fi
100100

101101
# generate *.gcov files
102-
gcov*.c*.h
102+
gcovsrc/*.csrc/*.h
103103

104104

105105
set +ux

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp