summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'template.c')
-rw-r--r--template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/template.c b/template.c
index 200f3d01..f4f73da5 100644
--- a/template.c
+++ b/template.c
@@ -22,9 +22,10 @@ static struct template *tplLast = NULL; /* points to the last element of the tem
*/
struct templateEntry* tpeConstruct(struct template *pTpl)
{
+ struct templateEntry *pTpe;
+
assert(pTpl != NULL);
- struct templateEntry *pTpe;
if((pTpe = calloc(1, sizeof(struct templateEntry))) == NULL)
return NULL;