aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_horner.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-02-26 00:22:03 +0100
committerEven Rouault <even.rouault@spatialys.com>2017-02-26 11:25:14 +0100
commit66e04bf4e5cdb27a44e9bea6bacad22c02df2f0d (patch)
treef148438285557a491088b4042a1dfab80f80d577 /src/PJ_horner.c
parentb288ee6bbc345baf2ef56aaec49184c34a6cd0dd (diff)
downloadPROJ-66e04bf4e5cdb27a44e9bea6bacad22c02df2f0d.tar.gz
PROJ-66e04bf4e5cdb27a44e9bea6bacad22c02df2f0d.zip
Fix warnings related to -Wshadow -Wnull-dereference -Wfloat-conversionr -Wmissing-prototypes -Wmissing-declarations
Diffstat (limited to 'src/PJ_horner.c')
-rw-r--r--src/PJ_horner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PJ_horner.c b/src/PJ_horner.c
index 08b64ab9..3dde29c8 100644
--- a/src/PJ_horner.c
+++ b/src/PJ_horner.c
@@ -451,6 +451,10 @@ PJ *PROJECTION(horner) {
complex_horner = 1;
Q = horner_alloc (degree, complex_horner);
+ if (Q == 0)
+ {
+ return horner_freeup (P);
+ }
P->opaque = (void *) Q;
if (complex_horner) {