diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-26 14:34:13 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-26 14:34:13 +0100 |
| commit | c05a91da2e9e008d77bd148d4de62045f9f149c8 (patch) | |
| tree | 2fa7a7bf860ad14db3dd340e3bc20aa44bba738c | |
| parent | 3529081bce702ddbc7c68f677f91d3c8f5bbb897 (diff) | |
| download | PROJ-c05a91da2e9e008d77bd148d4de62045f9f149c8.tar.gz PROJ-c05a91da2e9e008d77bd148d4de62045f9f149c8.zip | |
path_append(): make it clear that nullptr deref cannot happen. Coverity CID 193530
| -rw-r--r-- | src/4D_api.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp index d0b2748e..81e16600 100644 --- a/src/4D_api.cpp +++ b/src/4D_api.cpp @@ -1365,6 +1365,7 @@ static char *path_append (char *buf, const char *app, size_t *buf_size) { pj_dealloc (buf); buf = p; } + assert(buf); /* Only append a semicolon if something's already there */ if (0 != buflen) |
