From 40722f777c12c12b1080f1bccf8429288bb1502e Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 4 Jan 2007 19:47:28 +0100 Subject: fix segfault with old gipfel format --- src/ImageMetaData.cxx | 2 +- src/Panorama.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3