diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-03-12 22:42:38 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-03-14 20:25:12 +0100 |
| commit | cde489ce64556e0ad5fa5da64bcb8fd88aee4c39 (patch) | |
| tree | 5613678eec267e8076690bba041d90034a518faf /src/PJ_goode.c | |
| parent | 98258282af54a8ec315aaa216d48f890dd09bbdf (diff) | |
| download | PROJ-cde489ce64556e0ad5fa5da64bcb8fd88aee4c39.tar.gz PROJ-cde489ce64556e0ad5fa5da64bcb8fd88aee4c39.zip | |
Fix various dead initialization warnings spotted by clang static analyzer
Diffstat (limited to 'src/PJ_goode.c')
| -rw-r--r-- | src/PJ_goode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_goode.c b/src/PJ_goode.c index 1554fd41..65761c4b 100644 --- a/src/PJ_goode.c +++ b/src/PJ_goode.c @@ -17,7 +17,7 @@ struct pj_opaque { static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */ - XY xy = {0.0,0.0}; + XY xy; struct pj_opaque *Q = P->opaque; if (fabs(lp.phi) <= PHI_LIM) @@ -31,7 +31,7 @@ static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */ static LP s_inverse (XY xy, PJ *P) { /* Spheroidal, inverse */ - LP lp = {0.0,0.0}; + LP lp; struct pj_opaque *Q = P->opaque; if (fabs(xy.y) <= PHI_LIM) |
