From 05b40b64f84281192031ed0f24714a678e030b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Wed, 14 Apr 2021 10:20:50 +0200 Subject: [PATCH] Initialize variable so it doesn't end up in almost infinite loop --- loadrunable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loadrunable.cpp b/loadrunable.cpp index d6cccb8..4cdde95 100644 --- a/loadrunable.cpp +++ b/loadrunable.cpp @@ -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)