summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorMichael Meckelein <mmeckelein@hq.adiscon.com>2004-11-25 10:26:52 +0000
committerMichael Meckelein <mmeckelein@hq.adiscon.com>2004-11-25 10:26:52 +0000
commit0185bdf2af7d54c72dc57cd2fd89d1d8bf0e94f6 (patch)
tree07ad76132dc91a87b2dbf2e99035ee7ab541927d /template.c
parent7720bcded1fe377b3c7defb0ea76dd9aa040c31d (diff)
downloadrsyslog-0185bdf2af7d54c72dc57cd2fd89d1d8bf0e94f6.tar.gz
rsyslog-0185bdf2af7d54c72dc57cd2fd89d1d8bf0e94f6.tar.xz
rsyslog-0185bdf2af7d54c72dc57cd2fd89d1d8bf0e94f6.zip
Added some MySQL stuff
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;