From 15182d7fdd33c8018611359e07ebeb88ad951738 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Thu, 17 Sep 2020 06:51:59 +0200 Subject: [PATCH] Don't mix code and declaration --- tccelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccelf.c b/tccelf.c index d900e3db..b4b17afc 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1320,8 +1320,8 @@ static void add_init_array_defines(TCCState *s1, const char *section_name) #ifndef TCC_TARGET_PE static int tcc_add_support(TCCState *s1, const char *filename) { - if (!filename || strlen(filename)==0) return 0; char buf[1024]; + if (!filename || strlen(filename)==0) return 0; snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename); return tcc_add_file(s1, buf); }