[hackers] [st] minor code-style, initialize var at the top of function || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 15 Mar 2019 14:48:10 +0100 (CET)

commit 9acec468fbeaa9f90578352b610431ca9b2d4ee4
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Fri Mar 15 14:42:50 2019 +0100
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Fri Mar 15 14:42:50 2019 +0100

    minor code-style, initialize var at the top of function

diff --git a/st.c b/st.c
index c383b43..f342e5c 100644
--- a/st.c
+++ b/st.c
_AT_@ -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);
_AT_@ -1848,8 +1848,6 @@ strhandle(void)
                         return;
                 case 52:
                         if (narg > 2) {
- char *dec;
-
                                 dec = base64dec(strescseq.args[2]);
                                 if (dec) {
                                         xsetsel(dec);
Received on Fri Mar 15 2019 - 14:48:10 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 15 2019 - 14:48:26 CET