[asterisk-commits] tilghman: trunk r215070 - /trunk/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 31 17:02:27 CDT 2009


Author: tilghman
Date: Mon Aug 31 17:02:24 2009
New Revision: 215070

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215070
Log:
Fix a trunk compilation warning.

Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/http.c?view=diff&rev=215070&r1=215069&r2=215070
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Mon Aug 31 17:02:24 2009
@@ -810,12 +810,13 @@
 	struct ast_variable *v, *cookies=NULL;
 
 	for (v = headers; v; v = v->next) {
-                if (!strncasecmp(v->name, "Cookie", 6)) {
+		if (!strncasecmp(v->name, "Cookie", 6)) {
+			char *tmp = ast_strdupa(v->value);
 			if (cookies) {
 				ast_variables_destroy(cookies);
 			}
 
-			cookies = parse_cookies((char *)v->value);
+			cookies = parse_cookies(tmp);
 		}
 	}
 	return cookies;




More information about the asterisk-commits mailing list