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");
|
ftmp=fopen(tname,"wt");
|
||||||
#else
|
#else
|
||||||
static const char template[]="/tmp/pawnXXXXXX";
|
static const char template[]="/tmp/pawnXXXXXX";
|
||||||
ftmp=NULL;
|
|
||||||
if ((tname=malloc(sizeof(template)))!=NULL) {
|
if ((tname=malloc(sizeof(template)))!=NULL) {
|
||||||
int fdtmp;
|
int fdtmp;
|
||||||
strncpy(tname,template,sizeof(template));
|
strncpy(tname,template,sizeof(template));
|
||||||
|
@ -274,7 +274,6 @@ void *pc_createtmpsrc(char **filename)
|
|||||||
ftmp=fopen(tname,"wt");
|
ftmp=fopen(tname,"wt");
|
||||||
#else
|
#else
|
||||||
static const char template[]="/tmp/pawnXXXXXX";
|
static const char template[]="/tmp/pawnXXXXXX";
|
||||||
ftmp=NULL;
|
|
||||||
if ((tname=malloc(sizeof(template)))!=NULL) {
|
if ((tname=malloc(sizeof(template)))!=NULL) {
|
||||||
int fdtmp;
|
int fdtmp;
|
||||||
strncpy(tname,template,sizeof(template));
|
strncpy(tname,template,sizeof(template));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user