Typo in no subject translation in details dialog (fixes NB#108705)
[modest] / src / widgets / modest-details-dialog.c
index 8d679c0..732c59f 100644 (file)
@@ -229,9 +229,18 @@ modest_details_dialog_set_header_default (ModestDetailsDialog *self,
        sent = tny_header_get_date_sent (header);
        size = tny_header_get_message_size (header);
 
+       if (from == NULL)
+               from = g_strdup ("");
+       if (to == NULL)
+               to = g_strdup ("");
+       if (subject == NULL)
+               subject = g_strdup ("");
+       if (cc == NULL)
+               cc = g_strdup ("");
+
        if (!strcmp (subject, "")) {
                g_free (subject);
-               subject = g_strdup (_("mail_va_no_subject "));
+               subject = g_strdup (_("mail_va_no_subject"));
        }
 
        /* Add from and subject for all folders */