diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-27 23:12:53 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-02-27 23:35:36 +0100 |
| commit | fb87c671f11b5a3a41828727a8b57f6c8397fc79 (patch) | |
| tree | 6c7f0d5b9324323477c98c7a2df0804e24ffe20e /src/initcache.cpp | |
| parent | f3561e5749fefd957f67cc631378d1c39161a310 (diff) | |
| download | PROJ-fb87c671f11b5a3a41828727a8b57f6c8397fc79.tar.gz PROJ-fb87c671f11b5a3a41828727a8b57f6c8397fc79.zip | |
Fix warnings of latest cppcheck master
Diffstat (limited to 'src/initcache.cpp')
| -rw-r--r-- | src/initcache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/initcache.cpp b/src/initcache.cpp index 6120a406..af20fb82 100644 --- a/src/initcache.cpp +++ b/src/initcache.cpp @@ -54,10 +54,10 @@ paralist *pj_clone_paralist( const paralist *list) newitem->next = nullptr; strcpy( newitem->param, list->param ); - if( list_copy == nullptr ) - list_copy = newitem; - else + if( next_copy ) next_copy->next = newitem; + else + list_copy = newitem; next_copy = newitem; } |
