summaryrefslogtreecommitdiffstats
path: root/tksao
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-01-26 19:34:05 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-01-26 19:34:05 (GMT)
commit46ea56f9a283b53b3b247d05783bd8da74e55d66 (patch)
tree1142f1e0d231636c239c59f0ab49c136047bd5ee /tksao
parentdbf2b5843e1405035f5b6f8af169916618920806 (diff)
downloadblt-46ea56f9a283b53b3b247d05783bd8da74e55d66.zip
blt-46ea56f9a283b53b3b247d05783bd8da74e55d66.tar.gz
blt-46ea56f9a283b53b3b247d05783bd8da74e55d66.tar.bz2
if bad map, zero out str
Diffstat (limited to 'tksao')
-rw-r--r--tksao/frame/marker.C8
1 files changed, 7 insertions, 1 deletions
diff --git a/tksao/frame/marker.C b/tksao/frame/marker.C
index 9cd3fd8..766496b 100644
--- a/tksao/frame/marker.C
+++ b/tksao/frame/marker.C
@@ -1409,6 +1409,9 @@ void Marker::listRADEC(FitsImage* ptr,
{
char buf[64];
ptr->mapFromRef(vv,sys,sky,format,buf);
+
+ ra[0] = '\0';
+ dec[0] = '\0';
string x(buf);
istringstream wcs(x);
wcs >> ra >> dec;
@@ -1419,8 +1422,11 @@ void Marker::listRADECPros(FitsImage* ptr,
Coord::SkyFrame sky, Coord::SkyFormat format)
{
char buf[64];
- char decc[32];
ptr->mapFromRef(vv,sys,sky,format,buf);
+
+ char decc[32];
+ ra[0] = '\0';
+ decc[0] = '\0';
string x(buf);
istringstream wcs(x);
wcs >> ra >> decc;