]> git.armaanb.net Git - st.git/commitdiff
minor code-style, initialize var at the top of function
authorHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 15 Mar 2019 13:42:50 +0000 (14:42 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 15 Mar 2019 13:42:50 +0000 (14:42 +0100)
st.c

diff --git a/st.c b/st.c
index c383b43052a3815ecc99600b29098117ccc12d3e..f342e5c432fe48621a6f1e247df458f3fc5bea1e 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1830,7 +1830,7 @@ csireset(void)
 void
 strhandle(void)
 {
-       char *p = NULL;
+       char *p = NULL, *dec;
        int j, narg, par;
 
        term.esc &= ~(ESC_STR_END|ESC_STR);
@@ -1848,8 +1848,6 @@ strhandle(void)
                        return;
                case 52:
                        if (narg > 2) {
-                               char *dec;
-
                                dec = base64dec(strescseq.args[2]);
                                if (dec) {
                                        xsetsel(dec);