Skip to content

Commit 9755395

Browse files
MaxKellermannrouault
authored andcommitted
mapshape: remove useless null terminator
It's pointless to null-terminate the buffer if strcpy() overwrites it.
1 parent 7c05724 commit 9755395

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mapshape.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,6 @@ int msShapefileOpen(shapefileObj *shpfile, const char *mode, const char *filenam
17301730

17311731
bufferSize = strlen(filename)+5;
17321732
dbfFilename = (char *)msSmallMalloc(bufferSize);
1733-
dbfFilename[0] = '\0';
17341733
strcpy(dbfFilename, filename);
17351734

17361735
/* clean off any extention the filename might have */

0 commit comments

Comments
 (0)