Freeswitch issue FS-4623: fails to build with llvm/clang
Brought to you by:
thanson
As you can see here:
http://jira.freeswitch.org/browse/FS-4623
there's an uninitialised int (num) being used. The patch applied in Freeswitch is as follows:
--- libtpl-1.5.orig/src/tpl.c
+++ libtpl-1.5/src/tpl.c
@@ -1620,7 +1620,7 @@ static void tpl_free_atyp(tpl_node *n, t
*/
static int tpl_serlen(tpl_node *r, tpl_node *n, void *dv, size_t *serlen) {
uint32_t slen;
- int num,fidx;
+ int num = 0,fidx;
tpl_node *c;
size_t len=0, alen, buf_past, itermax;
tpl_pound_data *pd;
Anonymous
BTW I didn't intend to mark that as being for:
Milestone: v1.0_(example)
whatever that means