]> saetta.ns0.it Git - zakform/libzakform/commitdiff
Variable not initialized.
authorAndrea Zagli <azagli@libero.it>
Sat, 31 Oct 2015 15:52:09 +0000 (16:52 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 31 Oct 2015 15:52:09 +0000 (16:52 +0100)
src/form.c

index 24fcad4f086b7db744d479b9c61a1fa3791b09f9..4ab5f9d6796056afa9731c528ab45379ebeb3c72 100644 (file)
@@ -64,7 +64,7 @@ zak_form_form_init (ZakFormForm *zak_form_form)
 {
        ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
 
-       priv->ar_elements = NULL;
+       priv->ar_elements = g_ptr_array_new ();
 }
 
 /**