From 4330f9fa4391b4d39c52c972c75327ed2ba6ce33 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 28 Oct 2019 09:03:10 +0100 Subject: Various fixes/workarounds to make cppcheck 1.72 (Ubuntu 16.04) and HEAD/1.90dev happy (fixes #1648) --- src/open_lib.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/open_lib.cpp') 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'; } -- cgit v1.2.3