summaryrefslogtreecommitdiff
blob: 0b9669991cb35b6f5693c47d944f2fda47772cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- lib_mysqludf_fPROJ4.c.orig	2010-05-09 13:46:12.000000000 +0200
+++ lib_mysqludf_fPROJ4.c	2011-10-19 02:32:48.000000000 +0200
@@ -1,5 +1,3 @@
-/*
-
 /* 
 	lib_mysqludf_fPROJ4 - An extended set of scientific functions which 
 	converts geographic longitude and latitude coordinates into cartesian 
@@ -178,7 +176,7 @@
 }
 double fPROJ4_transform(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 {
-	projPJ pj_in, pj_out;
+	projPJ pj_in=NULL, pj_out=NULL;
 	double x, y,z;
 	int p,t;
 
@@ -248,7 +246,7 @@
 }
 double fPROJ4_Geo2UTM(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 {
-	projPJ pj_in, pj_out;
+	projPJ pj_in=NULL, pj_out=NULL;
 	double x, y;
 	int p,t,zone;
 	char *tmp;
@@ -323,7 +321,7 @@
 }
 double fPROJ4_UTM2Geo(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 {
-	projPJ pj_in, pj_out;
+	projPJ pj_in=NULL, pj_out=NULL;
 	double x, y;
 	int p,t,zone;
 	char *tmp;