From: Jeff Lenk Date: Mon, 15 Dec 2014 19:37:07 +0000 (-0600) Subject: fix windows build error X-Git-Tag: v1.4.15^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357ffad817774e705fc673ca92391f92f2b559be;p=thirdparty%2Ffreeswitch.git fix windows build error --- diff --git a/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c b/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c index 555e8a151a..051ba5ae39 100644 --- a/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c +++ b/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c @@ -395,6 +395,7 @@ char *sip_header_as_string(su_home_t *home, sip_header_t const *h) { ssize_t len; char *rv, s[256]; + ssize_t n; if (h == NULL) return NULL; @@ -413,7 +414,7 @@ char *sip_header_as_string(su_home_t *home, sip_header_t const *h) rv; rv = su_realloc(home, rv, len)) { memset(rv,0,len); - ssize_t n = sip_header_field_e(rv, len, h, 0); + n = sip_header_field_e(rv, len, h, 0); if (n > -1 && n + 1 <= len) break; if (n > -1) /* glibc >2.1 */