Alex Henrie : vbscript: Make constant 'html_delimiterW' static.

Alexandre Julliard julliard at winehq.org
Mon Dec 3 15:28:54 CST 2018


Module: wine
Branch: master
Commit: 36f25a4b8a9f0f80815f4c9d9305369f2e03f46b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=36f25a4b8a9f0f80815f4c9d9305369f2e03f46b

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Dec  2 16:05:47 2018 -0700

vbscript: Make constant 'html_delimiterW' static.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/vbscript/parser.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/vbscript/parser.y b/dlls/vbscript/parser.y
index e8ecf4d..0201099 100644
--- a/dlls/vbscript/parser.y
+++ b/dlls/vbscript/parser.y
@@ -969,7 +969,7 @@ void *parser_alloc(parser_ctx_t *ctx, size_t size)
 
 HRESULT parse_script(parser_ctx_t *ctx, const WCHAR *code, const WCHAR *delimiter)
 {
-    const WCHAR html_delimiterW[] = {'<','/','s','c','r','i','p','t','>',0};
+    static const WCHAR html_delimiterW[] = {'<','/','s','c','r','i','p','t','>',0};
 
     ctx->code = ctx->ptr = code;
     ctx->end = ctx->code + strlenW(ctx->code);




More information about the wine-cvs mailing list