]> git.marmaro.de Git - mmh/commitdiff
The existence of the profile entry Path is already enforced by context_read().
authormarkus schnalke <meillo@marmaro.de>
Sun, 20 Nov 2011 11:38:17 +0000 (12:38 +0100)
committermarkus schnalke <meillo@marmaro.de>
Sun, 20 Nov 2011 11:38:17 +0000 (12:38 +0100)
Hence, removed the obscure ``free(path("./", TFOLDER));'' calls.
Still I don't see the sense in these lines, but they won't get executed,
as the condition is checked before (and the program aborts then).
Probably that's obsolete stuff that remained through several reworks.

26 files changed:
uip/anno.c
uip/burst.c
uip/comp.c
uip/dist.c
uip/flist.c
uip/folder.c
uip/forw.c
uip/inc.c
uip/mark.c
uip/mhbuild.c
uip/mhlist.c
uip/mhpath.c
uip/mhshow.c
uip/mhstore.c
uip/mhtest.c
uip/packf.c
uip/pick.c
uip/rcvstore.c
uip/refile.c
uip/repl.c
uip/rmf.c
uip/rmm.c
uip/scan.c
uip/send.c
uip/show.c
uip/sortm.c

index 3a0fa8cbbb7e33dd7d4965dea03de847cb04dffc..66d8a0d48c66b7d6063d4805451a4dc440cc36dd 100644 (file)
@@ -208,8 +208,6 @@ main(int argc, char **argv)
                datesw = 0;
 #endif /* UCI */
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!msgs.size)
                app_msgarg(&msgs, "cur");
        if (!folder)
index 032c5b5ca0fe7bf5d865f79bbb10fc43b833ef77..44f6bfe94e4b7b7e54ef17a0d4f5b2b32264e9a5 100644 (file)
@@ -113,8 +113,6 @@ main(int argc, char **argv)
                }
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!msgp)
                msgs[msgp++] = "cur";
        if (!folder)
index 9f0929d7104277dd6dcb17c650bdd2300d8090f4..95b5c94ece517cfb4bdcdbbcb4419dd0ec4909f1 100644 (file)
@@ -135,9 +135,6 @@ main(int argc, char **argv)
 
        cwd = getcpy(pwd());
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (form && (folder || msg))
                        adios(NULL, "can't mix forms and folders/msgs");
 
index 131cda9428371858889a77898b771a9cff10bbac..d31c5c9578d0701954f5a187ac2df2d3fe37612d 100644 (file)
@@ -138,8 +138,6 @@ main(int argc, char **argv)
 
        cwd = getcpy(pwd());
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (file && (msg || folder))
                adios(NULL, "can't mix files and folders/msgs");
 
index 5d9dfcc31481f1072c92075645642957f1eb89d3..88cac0639ab01db8bfb4f788a65961a10504a222 100644 (file)
@@ -236,9 +236,6 @@ main(int argc, char **argv)
                }
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        /* get current folder */
        strncpy(curfolder, getfolder(FCUR), sizeof(curfolder));
 
index 4fa9424bd3ef15c98dc0e50dd232c15ac1cab5ab..735b5e79dec69879bb8af53d2b146aaf9641bb2e 100644 (file)
@@ -250,8 +250,6 @@ main(int argc, char **argv)
                }
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        nmhdir = concat(m_maildir(""), "/", NULL);
 
        /*
index 002bb675a86366e4f63bad8247ffc03ec67de647..666228b73d866e3be398417df7e6c7bd03765c01 100644 (file)
@@ -241,8 +241,6 @@ main(int argc, char **argv)
 
        cwd = getcpy(pwd());
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (file && (msgp || folder))
                adios(NULL, "can't mix files and folders/msgs");
 
index d23bf32d399bbba9ed86bbecf02cfbce7203f521..9e6fb6f0db321f46c611cc5e0d0fcf7d6e70ff1b 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -300,8 +300,6 @@ main(int argc, char **argv)
 
        newmail = cp;
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!folder)
                folder = getfolder(FDEF);
        maildir = m_maildir(folder);
index d56a1615f37dc73758102513a71768284b94f107..fd43a209d63f4350cdffa56980656f12b3093990 100644 (file)
@@ -151,8 +151,6 @@ main(int argc, char **argv)
                        listsw++;
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!msgs.size)
                app_msgarg(&msgs, listsw ? "all" :"cur");
        if (!folder)
index 735a77e1b59d3a09623cb7aa7fd48345b27a7d55..50552656712879c46c39b9bc3c490dc7cc33c726 100644 (file)
@@ -295,9 +295,6 @@ main(int argc, char **argv)
        else
                tmp = add(m_maildir(invo_name), NULL);
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        /* Check if we have a file to process */
        if (!compfile)
                adios(NULL, "need to specify a %s composition file",
index 5eb0937c9b80231d6e93fbc1a2064fdf7a9dad64..92169a0abeab52d1e426045b514f635fed49303a 100644 (file)
@@ -268,9 +268,6 @@ do_cache:
        else
                tmp = add(m_maildir(invo_name), NULL);
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (file && msgs.size)
                adios(NULL, "cannot specify msg and file at same time!");
 
index 2281ba0ed16aba1908ef9146b0f647803dc92223..eb3b61829959dbbffeecae465a34a19b2a0c9795 100644 (file)
@@ -68,9 +68,6 @@ main(int argc, char **argv)
                        app_msgarg(&msgs, cp);
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (!folder)
                folder = getfolder(FCUR);
        maildir = m_maildir(folder);
index bb7a8e71b8b03576e8a5e9e6270a5a1099d38b9f..42e0ee06867d8a99fcf1d974d79eec250b9d1f46 100644 (file)
@@ -340,9 +340,6 @@ do_cache:
        else
                tmp = add(m_maildir(invo_name), NULL);
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (file && msgs.size)
                adios(NULL, "cannot specify msg and file at same time!");
 
index f61a5c026fda929fb091066671102cfba70d7d5f..4a17547d1086a8a6eadc4f0a003cd6c2a491f3a1 100644 (file)
@@ -283,9 +283,6 @@ do_cache:
        else
                tmp = add(m_maildir(invo_name), NULL);
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (file && msgs.size)
                adios(NULL, "cannot specify msg and file at same time!");
 
index 581349f651f56b9f5b199a61838e1193d0cf32c3..454fa1d43933085ca7179b9333fb7eb13070ec33 100644 (file)
@@ -261,9 +261,6 @@ do_cache:
        else
                tmp = add(m_maildir(invo_name), NULL);
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (file && msgs.size)
                adios(NULL, "cannot specify msg and file at same time!");
 
index 727298cde3b7e531dc99cbb951f2deca45b569db..5e171475bd11cb87193e906d54303d48fafa7d64 100644 (file)
@@ -120,9 +120,6 @@ main(int argc, char **argv)
                free(cp);
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        /* default is to pack whole folder */
        if (!msgs.size)
                app_msgarg(&msgs, "all");
index 69b9415009ff448624ba46bb34187c22259d3db3..f0dcec374c03d72717c912cd538a1eb576e831c8 100644 (file)
@@ -188,9 +188,6 @@ main(int argc, char **argv)
        }
        vec[vecp] = NULL;
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        /*
        ** If we didn't specify which messages to search,
        ** then search the whole folder.
index a120c66584f06273592dc94eb36064967796e029..5ed378a9d6817f83d5157daf8855bd5ba32b9739 100644 (file)
@@ -144,9 +144,6 @@ main(int argc, char **argv)
 
        seqs[seqp] = NULL;  /* NULL terminate list of sequences */
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        /* if no folder is given, use default folder */
        if (!folder)
                folder = getfolder(FDEF);
index 34e55ce1ff006ed2cb320c764764e3867a6eaeb8..690b55b11d2f476a6416768efab68825872bd666 100644 (file)
@@ -160,8 +160,6 @@ main(int argc, char **argv)
                                app_msgarg(&msgs, cp);
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (foldp == 0)
                adios(NULL, "no folder specified");
 
index 8d10e5d7ec58255ffb09b8cb81d949fd5ca795eb..fd92101fcb9ce753a776ed0bda0163cde8e8886c 100644 (file)
@@ -285,8 +285,6 @@ main(int argc, char **argv)
 
        cwd = getcpy(pwd());
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (file && (msg || folder))
                adios(NULL, "can't mix files and folders/msgs");
 
index 94198d0055f50f3e6ce5717005af70b01af247e9..3b532e0e591e029b3f26a09ff00e9840af96bc9a 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -81,8 +81,6 @@ main(int argc, char **argv)
                }
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!folder) {
                folder = getfolder(FCUR);
                defolder++;
index aca436a1afa91bc34240302334bba5e138ed1863..b90b43e51c643fda718c838f5479261a9ab0ae76 100644 (file)
--- a/uip/rmm.c
+++ b/uip/rmm.c
@@ -78,8 +78,6 @@ main(int argc, char **argv)
                        app_msgarg(&msgs, cp);
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!msgs.size)
                app_msgarg(&msgs, "cur");
        if (!folder)
index 4b0b3380091a387388fc6a6476abcbe0c104bd69..80addfccbed6dceeb9effd6753f0d426a95f56c6 100644 (file)
@@ -157,9 +157,6 @@ main(int argc, char **argv)
                                app_msgarg(&msgs, cp);
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        /*
        ** Get new format string.  Must be before chdir().
        */
index f7771558cf71c966a2215ea209dd0a8a6e0eb634..81633850ad99d76fd4c3a2cfe06038f8a6159a9b 100644 (file)
@@ -257,9 +257,6 @@ main(int argc, char **argv)
                }
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (!msgp)
                msgs[msgp++] = "cur";
        maildir = m_maildir(draftfolder);
index ceb901884a4243a1303408353f94c2582b661dff..fb517d12f4d7e45e082471e83ed75c14cd254bbd 100644 (file)
@@ -173,9 +173,6 @@ usage:
        }
        procp = vecp;
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        if (file) {
                if (msgp)
                        adios(NULL, "only one file at a time!");
index 5151889241ab5dcc2120316325d6f36d4ca89ec6..f9a4cff41ef8571f8f71b6612740e1f3868e42dc 100644 (file)
@@ -164,8 +164,6 @@ main(int argc, char **argv)
                        app_msgarg(&msgs, cp);
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!msgs.size)
                app_msgarg(&msgs, "all");
        if (!datesw)