initialize mp in ismymbox
authorPhilipp Takacs <philipp@bureaucracy.de>
Wed, 28 Oct 2015 11:19:05 +0000 (12:19 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Wed, 28 Oct 2015 11:26:53 +0000 (12:26 +0100)
sbr/addrsbr.c

index 8915798..201e816 100644 (file)
@@ -252,10 +252,10 @@ ismymbox(struct mailname *np)
        if (am == NULL) {
                mq.m_next = NULL;
                mq.m_mbox = getusername();
+               mp = &mq;
                if ((am = context_find("alternate-mailboxes")) == NULL) {
                        am = getusername();
                } else {
-                       mp = &mq;
                        oops = 0;
                        while ((cp = getname(am))) {
                                if ((mp->m_next = getm(cp, NULL, 0, AD_NAME, NULL)) == NULL) {