The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Add more guards to aspect calculations

gswe_aspect_data_calculate() may get called if the currently set
planet is NULL
timestamp-validity
Gergely Polonkai 8 years ago
parent 4d5866b405
commit bf5a839511
  1. 4
      src/gswe-aspect-data.c

@ -230,7 +230,7 @@ gswe_aspect_data_set_planet1(
aspect_data->planet1 = gswe_planet_data_ref(planet1);
if (aspect_data->planet2) {
if (planet1 && aspect_data->planet2) {
gswe_aspect_data_calculate(aspect_data);
}
}
@ -268,7 +268,7 @@ gswe_aspect_data_set_planet2(
aspect_data->planet2 = gswe_planet_data_ref(planet2);
if (aspect_data->planet1) {
if (aspect_data->planet1 && planet2) {
gswe_aspect_data_calculate(aspect_data);
}
}

Loading…
Cancel
Save