summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-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');