[geary: 21/23] Fix undefined variable error



commit 7da9ee125252a28c787928aeb1c79708d27d3cbb
Author: Torben <torben letorbi gmail com>
Date:   Tue Dec 17 13:41:35 2019 +0100

    Fix undefined variable error

 test/engine/rfc822-mailbox-address-test.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/engine/rfc822-mailbox-address-test.vala b/test/engine/rfc822-mailbox-address-test.vala
index fa9ebfb6..714da286 100644
--- a/test/engine/rfc822-mailbox-address-test.vala
+++ b/test/engine/rfc822-mailbox-address-test.vala
@@ -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",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]