remove redundant memset

This commit is contained in:
Dave Murphy 2018-05-08 19:28:07 +01:00
parent 213dde3613
commit 7522156b5f

View File

@ -241,7 +241,6 @@ fsdev_getfspath(struct _reent *r,
if(fsdev_fixpath(r, path, device) == NULL) if(fsdev_fixpath(r, path, device) == NULL)
return -1; return -1;
memset(outpath, 0, FS_MAX_PATH);
memcpy(outpath, __fixedpath,FS_MAX_PATH-1); memcpy(outpath, __fixedpath,FS_MAX_PATH-1);
outpath[FS_MAX_PATH-1] = '\0'; outpath[FS_MAX_PATH-1] = '\0';