summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-01-04 19:47:28 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-01-04 19:47:28 +0100
commit40722f777c12c12b1080f1bccf8429288bb1502e (patch)
tree9b21e7a8695c4d00d14fd8058f9c65eb637e4edc
parent94f00e4e823ffd21f7543b300c1b87c271bff280 (diff)
fix segfault with old gipfel format
-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) {