Fix possible null pointer dereference
[pspp] / src / ui / gui / psppire-dialog-action-autorecode.c
index a86420919af8266eff7c2f69b33ab55291e10260..505ff30261c3ee12f19baeae6be6141e96546eef 100644 (file)
@@ -112,7 +112,7 @@ nlp_destroy (gpointer data)
 
 
 static char *
-generate_syntax (PsppireDialogAction *act)
+generate_syntax (const PsppireDialogAction *act)
 {
   PsppireDialogActionAutorecode *rd = PSPPIRE_DIALOG_ACTION_AUTORECODE (act);
   
@@ -380,8 +380,6 @@ psppire_dialog_action_autorecode_activate (PsppireDialogAction *a)
   psppire_dialog_action_set_refresh (pda, refresh);
   psppire_dialog_action_set_valid_predicate (pda, dialog_state_valid);
 
-  if (PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_autorecode_parent_class)->activate)
-    PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_autorecode_parent_class)->activate (pda);
 }
 
 static void