Commit 17bd9429 authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix parsing field names for form dialog

parent 72e079c0
......@@ -1108,7 +1108,7 @@ form_create_widget (GtkWidget * dlg)
}
case YAD_FIELD_LABEL:
if (fld->name[0])
if (fld->name && fld->name[0])
{
gchar *buf = g_strcompress (fld->name);
e = gtk_label_new (NULL);
......
......@@ -784,7 +784,8 @@ add_field (const gchar * option_name, const gchar * value, gpointer data, GError
}
else
{
fld->name = g_strdup (names[0]);
if (names[0] && *names[0])
fld->name = g_strdup (names[0]);
if (names[1])
fld->tip = g_strdup (names[1]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment