blob: 27a912f5a9021793550afe2c6db998323630ba12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Author: Ole Streicher <olebole@debian.org>
Description: Fix uninitialized value for haspm in RASortStars()
This fixes a crash with 'imstar -s'.
--- a/libwcs/sortstar.c
+++ b/libwcs/sortstar.c
@@ -417,6 +417,8 @@
hasnum = 1;
if (spra != NULL && spdec != NULL)
haspm = 1;
+ else
+ haspm = 0;
if (sx != NULL && sy != NULL)
hasxy = 1;
else
|