summaryrefslogtreecommitdiffstats
path: root/tksao/frame/basecommand.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-09 19:56:06 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-09 19:56:06 (GMT)
commit3325fa297dd7950589cf0b396eefc1ec18f8d6bb (patch)
treeeb0aa8f45d21673896cfff91cfb22cd02ae695ab /tksao/frame/basecommand.C
parent542357f25773a2dcc869a236b9f86d7fb18692b2 (diff)
downloadblt-3325fa297dd7950589cf0b396eefc1ec18f8d6bb.zip
blt-3325fa297dd7950589cf0b396eefc1ec18f8d6bb.tar.gz
blt-3325fa297dd7950589cf0b396eefc1ec18f8d6bb.tar.bz2
simplify wcs code
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r--tksao/frame/basecommand.C6
1 files changed, 3 insertions, 3 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C
index 12fdf17..4233057 100644
--- a/tksao/frame/basecommand.C
+++ b/tksao/frame/basecommand.C
@@ -2126,9 +2126,9 @@ void Base::getWCSAlignPointerCmd()
void Base::getWCSNameCmd(Coord::CoordSystem sys)
{
if (currentContext->cfits && currentContext->cfits->hasWCS(sys)) {
- char* wcsname = (char*)currentContext->cfits->getWCSName(sys);
- if (wcsname) {
- Tcl_AppendResult(interp, wcsname, NULL);
+ char* name = (char*)currentContext->cfits->getWCSName(sys);
+ if (name) {
+ Tcl_AppendResult(interp, name, NULL);
return;
}
}