summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-07 02:33:52 +0100
committerHaru <haru@dotalux.com>2013-11-07 02:33:52 +0100
commit75bbfdd137c0347155ad469d1c46f7f0a36a2579 (patch)
treed3ce92736c5343edb2e2869bfa84b64083334560 /src/map
parent068d42e39b2dafbe37419d37b65992b8a6efd327 (diff)
downloadhercules-75bbfdd137c0347155ad469d1c46f7f0a36a2579.tar.gz
hercules-75bbfdd137c0347155ad469d1c46f7f0a36a2579.tar.bz2
hercules-75bbfdd137c0347155ad469d1c46f7f0a36a2579.tar.xz
hercules-75bbfdd137c0347155ad469d1c46f7f0a36a2579.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c3
1 files changed, 1 insertions, 2 deletions
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');