aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-03-15 14:42:50 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-03-15 14:42:50 +0100
commit9acec468fbeaa9f90578352b610431ca9b2d4ee4 (patch)
tree7f293dd4ff7428eac4b1b2308bdf0e79b44f801e /st.c
parent927621f6da015f51710c03279b00c6cc38057e32 (diff)
downloadst-patched-9acec468fbeaa9f90578352b610431ca9b2d4ee4.tar.bz2
st-patched-9acec468fbeaa9f90578352b610431ca9b2d4ee4.tar.xz
st-patched-9acec468fbeaa9f90578352b610431ca9b2d4ee4.zip
minor code-style, initialize var at the top of function
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/st.c b/st.c
index c383b43..f342e5c 100644
--- a/st.c
+++ b/st.c
@@ -1830,7 +1830,7 @@ csireset(void)
1830void 1830void
1831strhandle(void) 1831strhandle(void)
1832{ 1832{
1833 char *p = NULL; 1833 char *p = NULL, *dec;
1834 int j, narg, par; 1834 int j, narg, par;
1835 1835
1836 term.esc &= ~(ESC_STR_END|ESC_STR); 1836 term.esc &= ~(ESC_STR_END|ESC_STR);
@@ -1848,8 +1848,6 @@ strhandle(void)
1848 return; 1848 return;
1849 case 52: 1849 case 52:
1850 if (narg > 2) { 1850 if (narg > 2) {
1851 char *dec;
1852
1853 dec = base64dec(strescseq.args[2]); 1851 dec = base64dec(strescseq.args[2]);
1854 if (dec) { 1852 if (dec) {
1855 xsetsel(dec); 1853 xsetsel(dec);