Initialize variable so it doesn't end up in almost infinite loop

This commit is contained in:
2021-04-14 10:20:50 +02:00
parent 99c7144135
commit 05b40b64f8
+1 -1
View File
@@ -159,7 +159,7 @@ bool loadFITS(QString path, ImageInfoData &info, RawImage **image, QImage *qimag
{
int imgtype;
int naxis;
long naxes[3];
long naxes[3] = {0};
fits_get_img_param(file, 3, &imgtype, &naxis, naxes, &status);
if(naxis >= 2 && naxis <= 3 && status == 0)