Remove unnecessary assignment

This commit is contained in:
Zeex 2015-04-06 17:11:35 +06:00
parent aef6d6d252
commit e5de4b15ef
2 changed files with 0 additions and 2 deletions

View File

@ -198,7 +198,6 @@ void *pc_createtmpsrc(char **filename)
ftmp=fopen(tname,"wt");
#else
static const char template[]="/tmp/pawnXXXXXX";
ftmp=NULL;
if ((tname=malloc(sizeof(template)))!=NULL) {
int fdtmp;
strncpy(tname,template,sizeof(template));

View File

@ -274,7 +274,6 @@ void *pc_createtmpsrc(char **filename)
ftmp=fopen(tname,"wt");
#else
static const char template[]="/tmp/pawnXXXXXX";
ftmp=NULL;
if ((tname=malloc(sizeof(template)))!=NULL) {
int fdtmp;
strncpy(tname,template,sizeof(template));