aboutsummaryrefslogtreecommitdiff
path: root/src/apps/gie.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-10-28 10:41:39 +0100
committerGitHub <noreply@github.com>2019-10-28 10:41:39 +0100
commitd9b9afe2b9921b0b3624095b60cca7d630cae67a (patch)
tree7865bf5e9b3d7b293f207c10a24fe965a114cfce /src/apps/gie.cpp
parente2d5b13f3442a8e88093a9d68e1be550194a4d77 (diff)
parent7026fa2241d4e42ac35688487b7c7dd4d7f8bad1 (diff)
downloadPROJ-d9b9afe2b9921b0b3624095b60cca7d630cae67a.tar.gz
PROJ-d9b9afe2b9921b0b3624095b60cca7d630cae67a.zip
Merge pull request #1697 from rouault/cppcheck_fixes
Fixes/workaround to be able to use cppcheck from Ubuntu 16.04 (fixes #1648)
Diffstat (limited to 'src/apps/gie.cpp')
-rw-r--r--src/apps/gie.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apps/gie.cpp b/src/apps/gie.cpp
index 4ae97130..6a67b55d 100644
--- a/src/apps/gie.cpp
+++ b/src/apps/gie.cpp
@@ -874,7 +874,7 @@ static int expect_failure_with_errno_message (int expected, int got) {
/* For test purposes, we want to call a transformation of the same */
/* dimensionality as the number of dimensions given in accept */
-static PJ_COORD expect_trans_n_dim (PJ_COORD ci) {
+static PJ_COORD expect_trans_n_dim (const PJ_COORD& ci) {
if (4==T.dimensions_given_at_last_accept)
return proj_trans (T.P, T.dir, ci);
@@ -1192,7 +1192,7 @@ static int errno_from_err_const (const char *err_const) {
const size_t n = sizeof lookup / sizeof lookup[0];
size_t i, len;
int ret;
- char tolower_err_const[100];
+ char tolower_err_const[100] = {};
/* Make a lower case copy for matching */
for (i = 0; i < 99; i++) {