From e5de4b15efd57ad6c84ff261b0ed1d5497801d63 Mon Sep 17 00:00:00 2001 From: Zeex Date: Mon, 6 Apr 2015 17:11:35 +0600 Subject: [PATCH] Remove unnecessary assignment --- source/compiler/libpawnc.c | 1 - source/compiler/sc1.c | 1 - 2 files changed, 2 deletions(-) diff --git a/source/compiler/libpawnc.c b/source/compiler/libpawnc.c index c12031a..4a94765 100644 --- a/source/compiler/libpawnc.c +++ b/source/compiler/libpawnc.c @@ -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)); diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index c9403ff..6687509 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -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));