summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ImageMetaData.cxx2
-rw-r--r--src/Panorama.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ImageMetaData.cxx b/src/ImageMetaData.cxx
index 55ee08e..e9a1241 100644
--- a/src/ImageMetaData.cxx
+++ b/src/ImageMetaData.cxx
@@ -169,7 +169,7 @@ ImageMetaData::load_image_jpgcom(char *name) {
int status;
char buf[1024];
double lo, la, he, dir, ni, ti, fr, _k0, _k1;
- int pt;
+ int pt = 0;
int n, ret = 1;
args[0] = "rdjpgcom";
diff --git a/src/Panorama.cxx b/src/Panorama.cxx
index 38cbd8c..1e3015a 100644
--- a/src/Panorama.cxx
+++ b/src/Panorama.cxx
@@ -233,6 +233,7 @@ Panorama::set_projection(ProjectionLSQ::Projection_t p) {
if (proj) {
delete proj;
+ proj = NULL;
}
switch(projection_type) {