Remove unnecessary assignment
This commit is contained in:
parent
aef6d6d252
commit
e5de4b15ef
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user