Fix undefined variable error

This commit is contained in:
Torben 2019-12-17 13:41:35 +01:00
parent ca2bab0338
commit 7da9ee1252

View file

@ -156,7 +156,7 @@ class Geary.RFC822.MailboxAddressTest : TestCase {
public void prepare_header_text_part() throws Error {
try {
// Test if prepare_header_text_part() can handle crappy input without grilling the CPU
addr = new MailboxAddress.imap(
MailboxAddress addr = new MailboxAddress.imap(
"=?UTF-8?Q?=22Firstname_=22=C2=AF\\=5F=28=E3=83=84=29=5F/=C2=AF=22_Lastname_via?==?UTF-8?Q?_Vendor=22_<system@vendor.com>?=",
null,
"=?UTF-8?Q?=22Firstname_=22=C2=AF\\=5F=28=E3=83=84=29=5F/=C2=AF=22_Lastname_via?==?UTF-8?Q?_Vendor=22_<system@vendor.com>?=",
@ -165,7 +165,7 @@ class Geary.RFC822.MailboxAddressTest : TestCase {
assert(addr.mailbox == "\"Firstname \"¯_(ツ)_/¯\" Lastname via Vendor\" <system@vendor.com>");
// A second test with the input that have been passed to prepare_header_text_part() by the pre-GMime3 tests
MailboxAddress addr = new MailboxAddress.imap(
addr = new MailboxAddress.imap(
"\"Firstname \"¯_(ツ)_/¯\" Lastname via=?UTF-8?Q?_Vendor=22_",
null,
"system",