From 75bbfdd137c0347155ad469d1c46f7f0a36a2579 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 7 Nov 2013 02:33:52 +0100 Subject: Corrected a const pointer being incorrectly initialized - Fixes bugreport:7804, thanks to kyeme http://hercules.ws/board/tracker/issue-7804-warning-c4090-function Signed-off-by: Haru --- src/map/script.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/script.c b/src/map/script.c index b30073486..7a2f1f24b 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -1918,8 +1918,7 @@ void script_errorwarning_sub(StringBuf *buf, const char* src, const char* file, int j; int line = start_line; const char *p, *error_linepos; - const char *linestart[CONTEXTLINES]; - memset(linestart, '\0', sizeof(linestart)); + const char *linestart[CONTEXTLINES] = { NULL }; for(p=src;p && *p;line++){ const char *lineend=strchr(p,'\n'); -- cgit v1.2.3-70-g09d2