aboutsummaryrefslogtreecommitdiff
path: root/src/open_lib.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/open_lib.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/open_lib.cpp')
-rw-r--r--src/open_lib.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/open_lib.cpp b/src/open_lib.cpp
index 05e01db2..7fedb28b 100644
--- a/src/open_lib.cpp
+++ b/src/open_lib.cpp
@@ -245,6 +245,7 @@ pj_open_lib_ex(projCtx ctx, const char *name, const char *mode,
{
if( out_full_filename != nullptr && out_full_filename_size > 0 )
{
+ // cppcheck-suppress nullPointer
strncpy(out_full_filename, sysname, out_full_filename_size);
out_full_filename[out_full_filename_size-1] = '\0';
}