diff options
Diffstat (limited to 'src/4D_api.cpp')
| -rw-r--r-- | src/4D_api.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp index 5502c96f..37afd289 100644 --- a/src/4D_api.cpp +++ b/src/4D_api.cpp @@ -607,6 +607,11 @@ PJ *pj_create_internal (PJ_CONTEXT *ctx, const char *definition) { } argv = pj_trim_argv (argc, args); + if (!argv) { + pj_dealloc(args); + proj_context_errno_set(ctx, ENOMEM); + return nullptr; + } /* ...and let pj_init_ctx do the hard work */ /* New interface: forbid init=epsg:XXXX syntax by default */ |
