summaryrefslogtreecommitdiff
path: root/translate.c
diff options
context:
space:
mode:
Diffstat (limited to 'translate.c')
-rw-r--r--translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate.c b/translate.c
index 256130c82..a1651f2db 100644
--- a/translate.c
+++ b/translate.c
@@ -127,7 +127,7 @@ static void *newpvt(struct ast_translator *t)
if (t->buf_size) /* finally buffer and header */
pvt->outbuf = ofs + AST_FRIENDLY_OFFSET;
/* call local init routine, if present */
- if (t->newpvt && t->newpvt(pvt) == NULL) {
+ if (t->newpvt && t->newpvt(pvt)) {
free(pvt);
return NULL;
}