[asterisk-commits] seanbright: trunk r378249 - /trunk/main/translate.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 1 11:10:45 CST 2013
Author: seanbright
Date: Tue Jan 1 11:10:42 2013
New Revision: 378249
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378249
Log:
Revert 378248. I changed the logic of this function unitentionally, pointed out by file.
Modified:
trunk/main/translate.c
Modified: trunk/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/translate.c?view=diff&rev=378249&r1=378248&r2=378249
==============================================================================
--- trunk/main/translate.c (original)
+++ trunk/main/translate.c Tue Jan 1 11:10:42 2013
@@ -282,12 +282,6 @@
struct ast_trans_pvt *pvt;
int len;
char *ofs;
-
- /* If we don't have a local init routine, don't bother building the
- ast_trans_pvt */
- if (!t->newpvt) {
- return NULL;
- }
/*
* compute the required size adding private descriptor,
@@ -315,7 +309,7 @@
ast_format_copy(&pvt->explicit_dst, explicit_dst);
}
/* call local init routine, if present */
- if (t->newpvt(pvt)) {
+ if (t->newpvt && t->newpvt(pvt)) {
ast_free(pvt);
return NULL;
}
More information about the asterisk-commits
mailing list