From a224f5ab99be79b816c1982dbe9e53718c14ab07 Mon Sep 17 00:00:00 2001 From: "Gergely Polonkai (W00d5t0ck)" Date: Fri, 4 Oct 2013 00:20:32 +0200 Subject: [PATCH] Bug fix in gswe_moment_calculate_antiscia() antiscion_data->antiscion_axis_info can be NULL, but at that point antiscion_data->antiscion_axis_info->axes can't be GSWE_ANTISCION_AXIS_NONE --- src/gswe-moment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gswe-moment.c b/src/gswe-moment.c index 4b24255..b7e77b9 100644 --- a/src/gswe-moment.c +++ b/src/gswe-moment.c @@ -1245,7 +1245,7 @@ gswe_moment_calculate_antiscia(GsweMoment *moment) (void)g_hash_table_find(gswe_antiscion_axis_info_table, (GHRFunc)find_antiscion, antiscion_data); - if (antiscion_data->antiscion_axis_info->axis == GSWE_ANTISCION_AXIS_NONE) { + if (antiscion_data->antiscion_axis_info == NULL) { antiscion_data->antiscion_axis_info = g_hash_table_lookup(gswe_antiscion_axis_info_table, GINT_TO_POINTER(GSWE_ANTISCION_AXIS_NONE)); }